Skip to content

Commit 92a2b9c

Browse files
committed
base compose file
1 parent 73e7651 commit 92a2b9c

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

compose.base.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

0 commit comments

Comments
 (0)