-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
61 lines (58 loc) · 2 KB
/
docker-compose.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
postgres:
image: postgres:16.3
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-numeraire}
# Enable logging
POSTGRES_LOGGING: "on"
# Environment variables to control PostgreSQL logging behavior
POSTGRES_LOG_MIN_DURATION_STATEMENT: "0" # Log all statements immediately
POSTGRES_LOG_STATEMENTS: "all"
ports:
- 5432:5432
volumes:
- db:/var/lib/postgresql/data
command:
- "postgres"
- "-c"
- "logging_collector=off" # Ensure logging collector is turned off to use stderr
- "-c"
- "log_statement=all" # Log all statements
- "-c"
- "log_destination=stderr" # Send logs to stderr
pgadmin:
image: dpage/pgadmin4:8.9
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_SERVER_JSON_FILE: /servers.json
ports:
- 5050:80
volumes:
- pgadmin:/root/.pgadmin
- ./deps/pgadmin/servers.json:/servers.json
depends_on:
- postgres
swissknife:
image: registry.digitalocean.com/swissknife/swissknife:latest
environment:
SWISSKNIFE_DATABASE__URL: ${SWISSKNIFE_DATABASE__URL:-postgres://postgres:postgres@postgres/numeraire}
SWISSKNIFE_BREEZ_CONFIG__API_KEY: ${SWISSKNIFE_BREEZ_CONFIG__API_KEY:-}
SWISSKNIFE_BREEZ_CONFIG__SEED: ${SWISSKNIFE_BREEZ_CONFIG__SEED:-}
SWISSKNIFE_CLN_REST_CONFIG__RUNE: ${SWISSKNIFE_CLN_REST_CONFIG__RUNE:-}
SWISSKNIFE_JWT__PASSWORD: ${SWISSKNIFE_JWT__PASSWORD:-}
SWISSKNIFE_JWT__SECRET: ${SWISSKNIFE_JWT__SECRET:-}
depends_on:
- postgres
ports:
- "3000:3000"
volumes:
- ./config/development.toml:/config/development.toml
- ./config/production.toml:/config/production.toml
- ./certs/greenlight:/certs/greenlight
- ./storage/breez:/storage/breez
volumes:
db:
pgadmin: