-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.lda.yml
58 lines (55 loc) · 1.26 KB
/
docker-compose.lda.yml
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
x-luminus-dynamic-api: &x-luminus-dynamic-api
build:
context: ./luminus-dynamic-api/
args:
- IMAGE_TAG=${IMAGE_TAG:?}
image: ohmymndy/luminus-dynamic-api:${IMAGE_TAG:?}
environment:
SQLALCHEMY_DATABASE_URI: postgresql://postgres:password@postgres-lda:5432/luminus-dynamic-api
init: true
services:
luminus-dynamic-api-web:
<<: *x-luminus-dynamic-api
ports:
- 5029:8000
healthcheck:
test:
[
"CMD",
"wget",
"--spider",
"-q",
"-T",
"1",
"http://0.0.0.0:8000/healthz",
]
interval: 1m
timeout: 1s
start_period: 30s
start_interval: 2s
luminus-dynamic-api-cli:
<<: *x-luminus-dynamic-api
entrypoint: ash
command:
- -c
- |
while true; do
python /app/sync.py
sleep 3600
done
postgres-lda:
image: postgres:17-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=luminus-dynamic-api
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -h localhost -U $${POSTGRES_USER} -d $${POSTGRES_DB}",
]
interval: 5s
timeout: 5s
retries: 10