This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
wikipedia-game-solver/compose.yaml

45 lines
1.2 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
volumes:
- "wikipedia-solver-postgres-data:/var/lib/postgresql/data"
- "./data:/data/"
volumes:
wikipedia-solver-postgres-data: