49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
services:
|
|
db:
|
|
image: postgres:16
|
|
container_name: wikitcg-db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: wikitcg
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_DB: wikitcg
|
|
volumes:
|
|
- /mnt/user/appdata/wikitcg/postgres:/var/lib/postgresql/data
|
|
networks:
|
|
- wikitcg
|
|
|
|
backend:
|
|
build: ./backend
|
|
container_name: wikitcg-backend
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
DATABASE_URL: postgresql://wikitcg:${DB_PASSWORD}@db/wikitcg
|
|
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
|
|
RESEND_API_KEY: ${RESEND_API_KEY}
|
|
EMAIL_FROM: ${EMAIL_FROM}
|
|
FRONTEND_URL: ${FRONTEND_URL}
|
|
CORS_ORIGINS: ${FRONTEND_URL}
|
|
WIKIRANK_USER_AGENT: ${WIKIRANK_USER_AGENT}
|
|
ports:
|
|
- "8000:8000"
|
|
networks:
|
|
- wikitcg
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
args:
|
|
PUBLIC_API_URL: ${BACKEND_URL}
|
|
container_name: wikitcg-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:80"
|
|
networks:
|
|
- wikitcg
|
|
|
|
networks:
|
|
wikitcg:
|
|
driver: bridge
|