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"
dockerfile: "./apps/api/Dockerfile"
- "${API_PORT-5000}:${API_PORT-5000}"
PORT: ${API_PORT-5000}
env_file: "./apps/api/.env"
wikipedia-solver-database:
container_name: "wikipedia-solver-database"
image: "postgres:16.3"
env_file: ".env"
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
command: |
--max_wal_size=4GB
- "${DATABASE_PORT-5432}:${DATABASE_PORT-5432}"
volumes:
- "wikipedia-solver-postgres-data:/var/lib/postgresql/data"
- "./data:/data/"
wikipedia-solver-postgres-data: