-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (41 loc) · 913 Bytes
/
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
version: '3.5'
services:
app:
environment:
- HOME=/app
- GEM_HOME=/app/vendor/bundle/ruby/2.5.0
- BUNDLE_PATH=/app/vendor/bundle/ruby/2.5.0
- PATH=/app/vendor/bundle/ruby/2.5.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- "TZ=Japan"
build: .
command: >
/bin/bash -c "
cd test/dummy &&
rm -rf tmp/pids/server.pid &&
bundle exec rails s -p 3000 -b '0.0.0.0'
"
ports:
- "4003:3000"
stdin_open: true
tty: true
volumes:
- .:/app:cached
- vendor:/app/vendor:cached
- /app/.git
- ~/.ssh:/root/.ssh:rw
- /app/.bundle
depends_on:
- db
db:
image: mysql:5.7
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
ports:
- '3325:3306'
volumes:
- mysql-db:/var/lib/mysql
volumes:
mysql-db:
driver: local
vendor:
driver: local