-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-development.yml
92 lines (91 loc) · 1.94 KB
/
docker-development.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3.4'
x-restart-policy: &restart_policy
restart: unless-stopped
x-metamapper-defaults: &metamapper_defaults
<< : *restart_policy
image: metamapper
environment:
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN
- AWS_SECURITY_TOKEN=$AWS_SECURITY_TOKEN
- AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION
env_file:
- .env
depends_on:
- database
- elastic
networks:
- metamapper
volumes:
- ./:/usr/local/metamapper
services:
database:
<< : *restart_policy
image: postgres:12.3
ports:
- 5430:5432
volumes:
- metamapper-database:/var/lib/postgresql/data
networks:
- metamapper
environment:
POSTGRES_PASSWORD: postgres
elastic:
<< : *restart_policy
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.1
ports:
- 9200:9200
- 9300:9300
networks:
- metamapper
environment:
discovery.type: single-node
msgbroker:
<< : *restart_policy
image: redis:alpine
networks:
- metamapper
webserver:
<< : *metamapper_defaults
build:
context: ./
command: webserver
ports:
- 5050:5050
core-worker:
<< : *metamapper_defaults
command: worker --concurrency=1 -Q default,checks,revisioner
depends_on:
- database
- msgbroker
usage-worker:
<< : *metamapper_defaults
command: worker --concurrency=1 -Q usage
depends_on:
- database
- msgbroker
scheduler:
<< : *metamapper_defaults
command: scheduler
depends_on:
- database
- msgbroker
flower:
image: mher/flower
environment:
- CELERY_BROKER_URL=redis://msgbroker:6379/0
- FLOWER_PORT=8888
ports:
- 8888:8888
depends_on:
- database
- elastic
networks:
- metamapper
volumes:
metamapper-database:
driver: local
networks:
metamapper:
driver: bridge