34 lines
837 B
YAML
34 lines
837 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16
|
|
container_name: backend-postgres
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${DB_PORT:-5432}:5432"
|
|
environment:
|
|
POSTGRES_DB: ${DB_NAME:-game_admin}
|
|
POSTGRES_USER: ${DB_USER:-game_admin_user}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-game_admin_password}
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-game_admin_user} -d ${DB_NAME:-game_admin}"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 15s
|
|
|
|
adminer:
|
|
image: adminer:4
|
|
container_name: backend-adminer
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- postgres
|
|
ports:
|
|
- "${ADMINER_PORT:-8081}:8080"
|
|
environment:
|
|
ADMINER_DEFAULT_SERVER: postgres
|
|
|
|
volumes:
|
|
postgres_data:
|