forked from Netflix/lemur
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
58 lines (55 loc) · 1.34 KB
/
compose.yml
File metadata and controls
58 lines (55 loc) · 1.34 KB
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
services:
postgres:
image: postgres:17
container_name: lemur-postgres
environment:
POSTGRES_USER: lemur
POSTGRES_PASSWORD: lemur
POSTGRES_HOST: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U lemur" ]
interval: 5s
timeout: 5s
start_period: 5s
retries: 3
# redis:
# image: redis:8-alpine
# container_name: lemur-redis
# ports:
# - "6379:6379"
# healthcheck:
# test: [ "CMD", "redis-cli", "ping" ]
# interval: 10s
# timeout: 5s
# retries: 5
lemur:
build:
context: .
dockerfile: Dockerfile
container_name: lemur-app
depends_on:
postgres:
condition: service_healthy
environment:
LOG_FILE: "/opt/lemur/lemur.log"
SQLALCHEMY_DATABASE_URI: "postgresql://lemur:lemur@postgres:5432/lemur"
LEMUR_CONF: "/opt/lemur/lemur.conf.py"
LEMUR_PASSWORD: "lemur"
volumes:
- ./lemur.conf.py:/home/lemur/.lemur/lemur.conf.py
- ./lemur.log:/opt/lemur/lemur.log
ports:
- "80:80"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000/api/1/healthcheck" ]
interval: 5s
timeout: 5s
start_period: 5s
retries: 3
volumes:
postgres_data:
driver: local