38 lines
913 B
YAML
38 lines
913 B
YAML
services:
|
|
postgres:
|
|
container_name: dockhand-postgres
|
|
image: postgres:17.6
|
|
environment:
|
|
POSTGRES_USER: dockhand
|
|
POSTGRES_PASSWORD: DockhandPass2024
|
|
POSTGRES_DB: dockhand
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "pg_isready", "-q", "-d", "dockhand", "-U", "dockhand"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
dockhand:
|
|
container_name: dockhand
|
|
image: fnsys/dockhand:latest
|
|
ports:
|
|
- 6000:3000
|
|
environment:
|
|
DATABASE_URL: postgres://dockhand:DockhandPass2024@postgres:5432/dockhand
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- dockhand_data:/app/data
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres_data:
|
|
driver: local
|
|
dockhand_data:
|
|
driver: local
|