-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
35 lines (33 loc) · 943 Bytes
/
docker-compose.yaml
File metadata and controls
35 lines (33 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
services:
goduckbot:
image: wcatz/goduckbot:${GODUCKBOT_VERSION:-latest}
container_name: goduckbot
restart: unless-stopped
volumes:
- ./config.yaml:/app/config.yaml:ro
- ./keys:/keys:ro
- goduckbot-data:/app/data
# Full mode: bind-mount the node's socket directory
# - /opt/cardano/ipc:/ipc:ro
# Optional: PostgreSQL instead of SQLite
# Enable with: docker compose --profile postgres up -d
postgres:
image: postgres:16-alpine
container_name: goduckbot-postgres
restart: unless-stopped
profiles:
- postgres
environment:
- POSTGRES_DB=goduckbot
- POSTGRES_USER=goduckbot
- POSTGRES_PASSWORD=${GODUCKBOT_DB_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U goduckbot"]
interval: 10s
timeout: 5s
retries: 5
volumes:
goduckbot-data:
postgres-data: