35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
services:
|
|
wikipedia-solver-dev-database:
|
|
container_name: "wikipedia-solver-dev-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-dev-postgres-data:/var/lib/postgresql/data"
|
|
- "./data:/data/"
|
|
|
|
wikipedia-solver-dev-adminer:
|
|
container_name: "wikipedia-solver-dev-adminer"
|
|
image: "adminer:4.8.1"
|
|
restart: "unless-stopped"
|
|
ports:
|
|
- "8080:8080"
|
|
env_file: ".env"
|
|
environment:
|
|
ADMINER_DEFAULT_SERVER: "wikipedia-solver-dev-database"
|
|
volumes:
|
|
- "./data/adminer/default-orange.css:/var/www/html/adminer.css"
|
|
- "./data/adminer/logo.png:/var/www/html/logo.png"
|
|
- "./data/adminer/fonts/:/var/www/html/fonts"
|
|
|
|
volumes:
|
|
wikipedia-solver-dev-postgres-data:
|