-
Notifications
You must be signed in to change notification settings - Fork 82
/
docker-compose.yml
59 lines (53 loc) · 1.13 KB
/
docker-compose.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
59
version: '3.7'
volumes:
pg_data: { }
app_data: { }
networks:
appnet:
driver: bridge
services:
postgres:
image: "postgres:12-alpine" # default version of Ubuntu 20.02, apt-cache show postgresql
restart: on-failure
networks:
- appnet
volumes:
- pg_data:/var/lib/postgresql/data
env_file:
- .pgsql.env
redis:
image: "redis:5.0-alpine" # default version of Ubuntu 20.02, apt-cache show redis-server
restart: on-failure
networks:
- appnet
nginx:
build:
context: ./nginx
#container_name: lemur-nginx
networks:
- appnet
volumes:
- app_data:/opt/lemur/lemur/static/dist:ro
restart: on-failure
depends_on:
- lemur
ports:
- 87:80
- 447:443
lemur:
image: netflix-lemur:latest
build:
context: ./lemur-build-docker
#container_name: lemur
restart: on-failure
networks:
- appnet
depends_on:
- postgres
- redis
env_file:
- .lemur.env
- .pgsql.env
volumes:
- ./lemur.conf.py:/home/lemur/.lemur/lemur.conf.py:ro
- app_data:/opt/lemur/lemur/static/dist:ro