Refactor docker-compose.yml to remove PostgreSQL service
Removed PostgreSQL service configuration and updated database connection details for the dockhand service.
This commit is contained in:
1 parent
37b72d91ab
commit
8dd927efee
1 file changed
+2
-23
@@ -1,37 +1,16 @@
|
|||||||
services:
|
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:
|
dockhand:
|
||||||
container_name: dockhand
|
container_name: dockhand
|
||||||
image: fnsys/dockhand:latest
|
image: fnsys/dockhand:latest
|
||||||
ports:
|
ports:
|
||||||
- 6000:3000
|
- 3000:3000
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgres://dockhand:DockhandPass2024@postgres:5432/dockhand
|
DATABASE_URL: postgres://postgres:1qaz2wsx%40@10.1.80.6:5432/dockhand
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- dockhand_data:/app/data
|
- dockhand_data:/app/data
|
||||||
depends_on:
|
|
||||||
postgres:
|
|
||||||
condition: service_healthy
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
|
||||||
driver: local
|
|
||||||
dockhand_data:
|
dockhand_data:
|
||||||
driver: local
|
driver: local
|
||||||
Reference in new issue
Block a user