forked from djlcp/shiift
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (36 loc) · 926 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (36 loc) · 926 Bytes
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
version: "3"
services:
db:
image: mysql:5.7
container_name: slacking_around_db
command: --default-authentication-plugin=mysql_native_password
env_file:
- .env
volumes:
- ~/databases/slacking_around:/var/lib/mysql/
ports:
- "3306:3306"
web:
build: .
container_name: slacking_around_web
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
env_file:
- .env
tty: true
stdin_open: true
volumes:
- .:/app
ports:
- "3000:3000"
depends_on:
- db
webpacker:
build: .
container_name: slacking_around_webpacker
env_file:
- .env
command: ./bin/webpack-dev-server
volumes:
- .:/app
ports:
- "3035:3035"