forked from peering-manager/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (58 loc) · 1.43 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
60
---
version: "3.4"
services:
peering-manager:
&peering-manager
image: peeringmanager/peering-manager:${VERSION-v1.7}
env_file: env/peering-manager.env
user: "unit:root"
volumes:
- ./startup_scripts:/opt/peering-manager/startup_scripts:z,ro
- ./initializers:/opt/peering-manager/initializers:z,ro
- ./configuration:/etc/peering-manager/config:z,ro
depends_on:
- postgres
- redis
- rqworker
rqworker:
<<: *peering-manager
depends_on:
- postgres
- redis
command:
- /opt/peering-manager/venv/bin/python
- /opt/peering-manager/manage.py
- rqworker
housekeeping:
<<: *peering-manager
depends_on:
- postgres
- redis
command:
- /opt/peering-manager/housekeeping.sh
peeringdb-sync:
<<: *peering-manager
depends_on:
- postgres
- redis
command:
- /opt/peering-manager/peeringdb.sh
postgres:
image: postgres:14-alpine
env_file: env/postgres.env
volumes:
- peering-manager-data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
env_file: env/redis.env
volumes:
- peering-manager-redis:/data
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
- redis-server --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
volumes:
peering-manager-data:
driver: local
peering-manager-redis:
driver: local