-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
52 lines (52 loc) · 1.23 KB
/
compose.yml
File metadata and controls
52 lines (52 loc) · 1.23 KB
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
services:
db:
image: mysql:8.0
environment:
TZ: Asia/Tokyo
MYSQL_ROOT_PASSWORD: password
volumes:
- mysql_data:/var/lib/mysql
ports:
- 3307:3306
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -uroot -ppassword
interval: 10s
timeout: 10s
retries: 3
start_period: 30s
web:
build:
context: .
dockerfile: Dockerfile.dev
command: bash -c "bundle install && bundle exec rails db:prepare && rm -f tmp/pids/server.pid && ./bin/dev"
tty: true
stdin_open: true
volumes:
- .:/myapp
- bundle_data:/usr/local/bundle:cached
- node_modules:/app/node_modules
environment:
DATABASE_USERNAME: root
DATABASE_PASSWORD: password
DATABASE_HOST: db
RAILS_ENV: development
TZ: Asia/Tokyo
SELENIUM_DRIVER_URL: http://chrome:4444/wd/hub
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
chrome:
image: seleniarm/standalone-chromium:latest
ports:
- 4444:4444
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4444/wd/hub/status"]
interval: 10s
timeout: 5s
retries: 5
volumes:
mysql_data:
bundle_data:
node_modules: