File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ services :
2+
3+ web :
4+ image : ghcr.io/dreamsofcode-io/zenstats:875adc865b0c65c5761e7e75c5cbd34722866861
5+ secrets :
6+ - db-password
7+ environment :
8+ - POSTGRES_HOST=db
9+ - POSTGRES_PASSWORD_FILE=/run/secrets/db-password
10+ - POSTGRES_USER=postgres
11+ - POSTGRES_DB=app
12+ - POSTGRES_PORT=5432
13+ - POSTGRES_SSLMODE=disable
14+ ports :
15+ - " 80:8080"
16+ deploy :
17+ update_config :
18+ order : start-first
19+ depends_on :
20+ - db
21+
22+ db :
23+ image : postgres
24+ user : postgres
25+ volumes :
26+ - db-data:/var/lib/postgresql/data
27+ secrets :
28+ - db-password
29+ environment :
30+ - POSTGRES_DB=app
31+ - POSTGRES_PASSWORD_FILE=/run/secrets/db-password
32+ healthcheck :
33+ test : [ "CMD", "pg_isready" ]
34+ interval : 10s
35+ timeout : 5s
36+ retries : 5
37+
38+ volumes :
39+ db-data :
40+ letsencrypt :
41+
42+ secrets :
43+ db-password :
44+ external : true
You can’t perform that action at this time.
0 commit comments