-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
80 lines (74 loc) · 1.56 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '2'
volumes:
db:
aida-db:
node_modules:
flow-typed:
deps:
build:
mix:
services:
db:
image: postgres:9.5
environment:
POSTGRES_PASSWORD:
POSTGRES_USER: postgres
POSTGRES_DB: active_monitoring_dev
volumes:
- 'db:/var/lib/postgresql/data'
app:
command: /bin/sh -c 'mix ecto.migrate && mix phx.server'
build:
context: ./
dockerfile: Dockerfile.dev
working_dir: /app
depends_on:
- db
- aida-backend
volumes:
- './:/app'
- 'deps:/app/deps'
- 'mix:/root/.mix'
- 'build:/app/_build'
environment:
AIDA_BACKEND_URL: http://aida-backend
DATABASE_HOST: db
HTTP_PORT: 80
TERM: xterm
ports:
- 4000:80
webpack:
build:
context: ./
dockerfile: Dockerfile.webpack
command: /bin/sh -c 'yarn install && yarn run watch'
restart: always
working_dir: /app
stop_signal: SIGKILL
volumes:
- './:/app'
- 'deps:/app/deps'
- 'flow-typed:/app/flow-typed'
- 'node_modules:/app/node_modules'
ngrok:
image: wernight/ngrok
ports:
- 4040:4040
environment:
NGROK_PORT: 'app:80'
aida-db:
image: postgres:9.6
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD:
volumes:
- aida-db:/var/lib/postgresql/data
aida-backend:
image: instedd/aida:dev
ports:
- "4080:80"
depends_on:
- aida-db
environment:
DATABASE_URL: ecto://root:@aida-db/aida-backend
command: /bin/sh -c 'mix ecto.migrate && mix phx.server'