-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
73 lines (67 loc) · 1.43 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
version: '3'
volumes:
db:
deps:
build:
node_modules:
yarn-cache:
services:
db:
image: postgres:10
volumes:
- 'db:/var/lib/postgresql/data'
environment:
POSTGRES_PASSWORD: postgres
app:
build:
context: ./
dockerfile: Dockerfile.dev
depends_on:
- db
working_dir: /app
volumes:
- './:/app'
- 'deps:/app/deps'
- 'build:/app/_build'
environment:
DATABASE_HOST: db
HTTP_PORT: 80
TERM: xterm
ports:
- 4000:80
ui:
image: instedd/aida-ui:dev
depends_on:
- db
environment:
DATABASE_URL: postgres://postgres:postgres@db/aida-ui
SECRET_KEY_BASE: secret
SETTINGS__BACKEND__URL: http://app/
SETTINGS__BACKEND__PUBLIC_SOCKET_URL: ws://app.aida.lvh.me/socket
SETTINGS__BASE_URL: http://ui.aida.lvh.me
tmpfs: /app/tmp
ports:
- 80
ngrok:
image: wernight/ngrok
ports:
- 4041:4040
environment:
NGROK_PORT: 'app:80'
node:
image: node:9.1
command: yarn start
depends_on:
- app
working_dir: /app
volumes:
- './assets/aida_web:/app'
- './priv/static:/app/build'
- 'node_modules:/app/node_modules'
- 'deps:/app/deps'
- 'yarn-cache:/usr/local/share/.cache/yarn'
environment:
REACT_APP_API_BASE_URL: http://app.aida.lvh.me
REACT_APP_WEB_SOCKET: ws://app.aida.lvh.me/socket
ports:
- 3080:3000