-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
43 lines (39 loc) · 1018 Bytes
/
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
version: '2'
services:
# DBs
postgres:
restart: always
build: ./db/postgres/
command: postgres -c config_file=postgresql.conf
env_file: .dev_env
volumes:
- /data/dev/KZ_HIKCAM/pgdata:/var/lib/postgresql/data
ports:
- "${KZ_HIKCAM_INTERNAL_ADDRESS}:10100:5432"
rabbit:
restart: always
image: rabbitmq:3-management
env_file: .dev_env
volumes:
- /data/dev/hikcam/rabbitdata:/var/lib/rabbitmq
ports:
- "${KZ_HIKCAM_INTERNAL_ADDRESS}:10101:5672"
- "${KZ_HIKCAM_INTERNAL_ADDRESS}:10102:15672"
# sevices
seed:
restart: on-failure
build: .
env_file: .dev_env
command: python seed.py
depends_on:
- postgres
- rabbit
harvest:
restart: on-failure
build: .
env_file: .dev_env
command: python harvest.py
depends_on:
- postgres
- rabbit
- seed