47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
services:
|
|
wikipedia-game-solver-website:
|
|
container_name: "wikipedia-game-solver-website"
|
|
image: "wikipedia-game-solver-website"
|
|
restart: "unless-stopped"
|
|
build:
|
|
context: "./"
|
|
dockerfile: "./apps/website/Dockerfile"
|
|
ports:
|
|
- "${WEBSITE_PORT-5000}:${WEBSITE_PORT-5000}"
|
|
environment:
|
|
PORT: ${WEBSITE_PORT-5000}
|
|
env_file: "./apps/website/.env"
|
|
|
|
wikipedia-game-solver-api:
|
|
container_name: "wikipedia-game-solver-api"
|
|
image: "wikipedia-game-solver-api"
|
|
restart: "unless-stopped"
|
|
build:
|
|
context: "./"
|
|
dockerfile: "./apps/api/Dockerfile"
|
|
ports:
|
|
- "${API_PORT-5000}:${API_PORT-5000}"
|
|
environment:
|
|
PORT: ${API_PORT-5000}
|
|
env_file: "./apps/api/.env"
|
|
|
|
wikipedia-solver-database:
|
|
container_name: "wikipedia-solver-database"
|
|
image: "postgres:16.3"
|
|
restart: "unless-stopped"
|
|
env_file: ".env"
|
|
environment:
|
|
POSTGRES_USER: ${DATABASE_USER}
|
|
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
|
|
POSTGRES_DB: ${DATABASE_NAME}
|
|
command: |
|
|
--max_wal_size=4GB
|
|
ports:
|
|
- "${DATABASE_PORT-5432}:${DATABASE_PORT-5432}"
|
|
volumes:
|
|
- "wikipedia-solver-postgres-data:/var/lib/postgresql/data"
|
|
- "./data:/data/"
|
|
|
|
volumes:
|
|
wikipedia-solver-postgres-data:
|