-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 1.04 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
version: "3"
services:
db:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: password
ports:
- "3306:3306"
command: --default-authentication-plugin=mysql_native_password
volumes:
- mysql-data:/var/lib/mysql
app: &app_base
build:
context: .
volumes:
- .:/var/src/app
ports:
- "3000:3000"
links:
- db
working_dir: /var/src/app
command: /bin/sh -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
cap_add:
- ALL # Add all privilege
container_name: app
tty: true
stdin_open: true
privileged: true
logging:
driver: "json-file"
options:
max-size: "100k"
dns:
- 8.8.8.8
webpack-dev-server:
build: .
command: /bin/sh -c "bin/webpack-dev-server --hot --inline"
ports:
- "3035:3035"
environment:
WEBPACKER_DEV_SERVER_HOST: 0.0.0.0
volumes:
- .:/var/src/app
tty: true
stdin_open: true
depends_on:
- app
volumes:
mysql-data:
driver: local