forked from instedd/active-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (62 loc) · 1.46 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
version: '2'
volumes:
db:
node_modules:
deps:
build:
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: elixir --sname server -S mix phoenix.server
build:
context: ./
dockerfile: Dockerfile.dev
working_dir: /app
depends_on:
- db
volumes:
- './:/app'
- 'deps:/app/deps'
- 'build:/app/_build'
environment:
GUISSO_CLIENT_ID: ${GUISSO_CLIENT_ID}
GUISSO_CLIENT_SECRET: ${GUISSO_CLIENT_SECRET}
GUISSO_REDIRECT_URI: ${GUISSO_REDIRECT_URI}
GUISSO_BASE_URL: ${GUISSO_BASE_URL}
VERBOICE_BASE_URL: ${VERBOICE_BASE_URL}
VERBOICE_GUISSO_BASE_URL: ${VERBOICE_GUISSO_BASE_URL}
VERBOICE_CLIENT_ID: ${VERBOICE_CLIENT_ID}
VERBOICE_CLIENT_SECRET: ${VERBOICE_CLIENT_SECRET}
VERBOICE_APP_ID: ${VERBOICE_APP_ID}
DATABASE_HOST: db
HTTP_PORT: 80
TERM: xterm
ports:
- 4000:80
webpack:
build:
context: ./
dockerfile: Dockerfile.webpack
command: yarn run webpack-dev-server
restart: always
working_dir: /app
stop_signal: SIGKILL
ports:
- 4001:4001
volumes:
- './:/app'
- 'deps:/app/deps'
- 'node_modules:/app/node_modules'
ngrok:
image: wernight/ngrok
ports:
- 4040:4040
environment:
NGROK_PORT: 'app:80'