mirror of
https://github.com/khoaliber/dockhand.git
synced 2026-03-02 05:29:05 +00:00
compose example
This commit is contained in:
25
docker-compose-postgresql.yaml
Normal file
25
docker-compose-postgresql.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_USER: dockhand
|
||||
POSTGRES_PASSWORD: changeme
|
||||
POSTGRES_DB: dockhand
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
|
||||
dockhand:
|
||||
image: fnsys/dockhand:latest
|
||||
ports:
|
||||
- 3000:3000
|
||||
environment:
|
||||
DATABASE_URL: postgres://dockhand:changeme@postgres:5432/dockhand
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- dockhand_data:/app/data
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
dockhand_data:
|
||||
13
docker-compose.yaml
Normal file
13
docker-compose.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
dockhand:
|
||||
image: fnsys/dockhand:latest
|
||||
container_name: dockhand
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- dockhand_data:/app/data
|
||||
|
||||
volumes:
|
||||
dockhand_data:
|
||||
Reference in New Issue
Block a user