-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathcompose.base.yaml
More file actions
44 lines (40 loc) · 883 Bytes
/
compose.base.yaml
File metadata and controls
44 lines (40 loc) · 883 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
36
37
38
39
40
41
42
43
44
services:
web:
image: ghcr.io/dreamsofcode-io/zenstats:875adc865b0c65c5761e7e75c5cbd34722866861
secrets:
- db-password
environment:
- POSTGRES_HOST=db
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
- POSTGRES_USER=postgres
- POSTGRES_DB=app
- POSTGRES_PORT=5432
- POSTGRES_SSLMODE=disable
ports:
- "80:8080"
deploy:
update_config:
order: start-first
depends_on:
- db
db:
image: postgres
user: postgres
volumes:
- db-data:/var/lib/postgresql/data
secrets:
- db-password
environment:
- POSTGRES_DB=app
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
db-data:
letsencrypt:
secrets:
db-password:
external: true