-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (77 loc) · 2.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
81 lines (77 loc) · 2.05 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "3.5"
services:
secrets:
build:
context: .
dockerfile: build/secrets/Dockerfile
image: secrets.split-pro.public.dappnode.eth:0.1.0
restart: unless-stopped
volumes:
- config:/config
postgres:
build:
context: .
dockerfile: build/postgres/Dockerfile
image: postgres.split-pro.public.dappnode.eth:0.1.0
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD_FILE=/config/POSTGRES_PASSWORD
- POSTGRES_DB=splitpro
- POSTGRES_PORT=5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d splitpro"]
interval: 10s
timeout: 5s
retries: 5
command: >
postgres
-c shared_preload_libraries=pg_cron
-c cron.database_name=splitpro
-c cron.timezone=UTC
volumes:
- config:/config:ro
- database:/var/lib/postgresql/data
depends_on:
- secrets
splitpro:
build:
context: .
dockerfile: build/splitpro/Dockerfile
image: splitpro.split-pro.public.dappnode.eth:0.1.0
restart: always
environment:
- HOSTNAME=0.0.0.0
- PORT=3000
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD_FILE=/config/POSTGRES_PASSWORD
- POSTGRES_CONTAINER_NAME=postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=splitpro
- NEXTAUTH_SECRET_FILE=/config/NEXTAUTH_SECRET
- NEXTAUTH_URL=http://split-pro.public.dappnode:3000
- NEXTAUTH_URL_INTERNAL=http://splitpro:3000
- DEFAULT_HOMEPAGE=/balances
- CURRENCY_RATE_PROVIDER=frankfurter
- ENABLE_SENDING_INVITES=true
- DISABLE_EMAIL_SIGNUP=false
- INVITE_ONLY=false
- UPLOAD_MAX_FILE_SIZE_MB=10
- EMAIL_TLS_REJECT_UNAUTHORIZED="1"
- FROM_EMAIL
- EMAIL_SERVER_HOST
- EMAIL_SERVER_PORT
- EMAIL_SERVER_USER
- EMAIL_SERVER_PASSWORD
ports:
- "3000:3000/tcp"
volumes:
- config:/config:ro
- uploads:/app/uploads
depends_on:
postgres:
condition: service_healthy
volumes:
config: {}
database: {}
uploads: {}