-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.24 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
version: '2'
volumes:
db:
node_modules:
deps:
build:
yarn-cache:
services:
db:
image: mysql:8.0
command: --max_allowed_packet=1G --default-authentication-plugin=mysql_native_password
volumes:
- db:/var/lib/mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
app:
command: elixir --sname server -S mix phx.server
build:
context: ./
dockerfile: Dockerfile
target: dev
working_dir: /app
depends_on:
- db
volumes:
- ./:/app
- deps:/deps
- build:/_build
environment:
DATABASE_HOST: db
HTTP_PORT: 80
TERM: xterm
VIRTUAL_PORT: 80
ports:
- 80
- 9980:9980
webpack:
image: node:10
command: /bin/sh -c 'yarn install && yarn run watch'
working_dir: /app
stop_signal: SIGKILL
volumes:
- ./:/app
- deps:/deps
- node_modules:/app/node_modules
- yarn-cache:/usr/local/share/.cache/yarn
ngrok:
image: ngrok/ngrok:alpine
ports:
- 4040
command: http app:80
environment:
# Get your Authtoken here: https://dashboard.ngrok.com/get-started/your-authtoken
# and override this value on docker-compose.override.yml
NGROK_AUTHTOKEN: 'TheActualAuthToken'