-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-quickstart.yml
51 lines (51 loc) · 1.32 KB
/
docker-quickstart.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
version: '3.4'
x-restart-policy: &restart_policy
restart: unless-stopped
x-metamapper-defaults: &metamapper_defaults
<< : *restart_policy
image: getmetamapper/preview:e9f0aa
env_file:
- .env.quickstart
depends_on:
- database
- msgbroker
- elastic
services:
database:
<< : *restart_policy
image: postgres:12.3
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: metamapper
volumes:
- 'mm-quickstart-db:/var/lib/postgresql/data'
elastic:
<< : *restart_policy
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.1
ports:
- 9200:9200
- 9300:9300
environment:
discovery.type: single-node
msgbroker:
<< : *restart_policy
image: redis:alpine
webserver:
<< : *metamapper_defaults
command: ["./wait-for-it.sh", "elastic:9200", "--", "./bin/docker-entrypoint", "migrate-then-webserver"]
ports:
- 5555:5050
worker:
<< : *metamapper_defaults
command: ["./wait-for-it.sh", "webserver:5555", "--", "./bin/docker-entrypoint", "worker"]
depends_on:
- webserver
scheduler:
<< : *metamapper_defaults
command: ["./wait-for-it.sh", "webserver:5555", "--", "./bin/docker-entrypoint", "scheduler"]
depends_on:
- webserver
volumes:
mm-quickstart-db:
driver: local