-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (36 loc) · 859 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (36 loc) · 859 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
services:
postgres:
image: postgres:18-alpine
ports:
- 5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 3
environment:
- POSTGRES_PASSWORD=postgres
otfd:
image: leg100/otfd:latest
depends_on:
postgres:
condition: service_healthy
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "sh", "-c", "echo check | nc localhost 8080"]
interval: 5s
timeout: 5s
retries: 3
environment:
OTF_DATABASE: "postgres://postgres:postgres@postgres/postgres?sslmode=disable"
OTF_SECRET_FILE: /run/secrets/secret
OTF_SITE_TOKEN_FILE: /run/secrets/site-token
secrets:
- secret
- site-token
secrets:
secret:
environment: OTF_SECRET
site-token:
environment: OTF_SITE_TOKEN