54 lines
1.5 KiB
YAML
54 lines
1.5 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: "mariadb:10.6.17"
|
|
restart: "unless-stopped"
|
|
env_file: ".env"
|
|
environment:
|
|
MARIADB_USER: ${DATABASE_USER}
|
|
MARIADB_PASSWORD: ${DATABASE_PASSWORD}
|
|
MARIADB_ROOT_PASSWORD: ${DATABASE_PASSWORD}
|
|
MARIADB_DATABASE: ${DATABASE_NAME}
|
|
command:
|
|
--innodb_buffer_pool_size=4G
|
|
--key-buffer-size=4G
|
|
--innodb_log_buffer_size=256M
|
|
--innodb_log_file_size=1G
|
|
--innodb_write_io_threads=16
|
|
--innodb_flush_log_at_trx_commit=0
|
|
--max_allowed_packet=1G
|
|
ports:
|
|
- "${DATABASE_PORT-3306}:${DATABASE_PORT-3306}"
|
|
volumes:
|
|
- "wikipedia-solver-mariadb-data:/var/lib/mysql"
|
|
# - "./sql:/docker-entrypoint-initdb.d/"
|
|
|
|
volumes:
|
|
wikipedia-solver-mariadb-data:
|