-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (62 loc) · 1.4 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
60
61
62
---
version: "3.2"
services:
app:
build:
context: ./
dockerfile: Dockerfile
command: ["bundle", "exec", "bin/rails", "server", "-b", "0.0.0.0"]
depends_on:
- db
entrypoint: ["/app/bin/wait_for", "db:3306", "--"]
environment:
DB_HOST: db
DB_PASSWORD: livSbI9IIoawmhk5
RACK_ENV: development
THEME: xmas
ports:
- 3000:3000/tcp
tmpfs: /app/tmp
volumes:
- ./app:/app/app:ro
- ./config:/app/config:ro
chrome:
image: selenium/standalone-chrome:3
volumes:
- /dev/shm:/dev/shm
ci:
build:
context: ./
dockerfile: Dockerfile
command: rspec
depends_on:
- chrome
- db
entrypoint: ["/app/bin/wait_for", "db:3306", "--"]
environment:
DATABASE_URL: mysql2://root:livSbI9IIoawmhk5@db/eagsmaster_test
RACK_ENV: test
db:
environment:
MYSQL_ROOT_PASSWORD: livSbI9IIoawmhk5
image: mysql:5.7
runner:
build:
context: ./
dockerfile: Dockerfile
command: rspec
depends_on:
- chrome
- db
entrypoint: ["/app/bin/wait_for", "db:3306", "--"]
environment:
DATABASE_URL: mysql2://root:livSbI9IIoawmhk5@db/eagsmaster_test
RACK_ENV: test
volumes:
- ./app:/app/app:ro
- ./config:/app/config:ro
- ./coverage:/app/coverage:rw
- ./spec:/app/spec:rw
- ./tmp:/app/tmp:rw
volumes:
node_modules: