Deply Dockhand docker-compose.yml
This commit is contained in:
1 parent
d89e31f25d
commit
7756635d5f
1 file changed
+37
@@ -0,0 +1,37 @@
|
|||||||
|
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:
|
||||||
|
- 3000: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
|
||||||
Reference in new issue
Block a user