This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (50 loc) · 1.47 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
version: '3'
services:
# Netwark web service
webserver:
build: .
restart: on-failure
# Uncomment this part if you are developping new features
# command: poetry run pserve --reload config/production.ini
ports:
- 127.0.0.1:6543:6543
volumes:
- ./maxmind_db:/opt/netwark/maxmind_db:rw
# - ./config/production.ini:/opt/netwark/config/production.ini
# - ./netwark:/opt/netwark/netwark # Uncomment this line if you are developping new features
depends_on:
- db
- rabbit
links:
- db:psql.netwark
- rabbit:rabbit.netwark
# Netwark backend
backend:
build: .
restart: on-failure
command: poetry run python netwark/bin/celery_backend.py /opt/netwark/config/production.ini
# volumes:
# - ./config/netwark_backend.yaml:/opt/netwark/config/netwark_backend.yaml
# - ./config/development.ini:/opt/netwark/config/production.ini
# - ./netwark:/opt/netwark/netwark # Uncomment this line if you are developping new features
depends_on:
- db
- rabbit
links:
- db:psql.netwark
- rabbit:rabbit.netwark
# PostgreSQL database
db:
image: postgres:11-alpine
restart: on-failure
environment:
POSTGRES_PASSWORD: ReallyBadPwd
POSTGRES_DB: netwark
volumes:
- ./docker/data/pgdata:/var/lib/postgresql/data
# RabbitMQ broker
rabbit:
image: rabbitmq:3.7-management-alpine
restart: on-failure
ports:
- 127.0.0.1:15672:15672