-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.34 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
version: "3"
services:
db:
image: postgres
environment:
POSTGRES_DB: hunterskeepers_development
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- data:/var/lib/postgresql/data
ports:
- "5432"
webpacker:
build:
context: .
target: rails-builder
environment:
- NODE_ENV=development
- RAILS_ENV=development
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
command: ./bin/webpack-dev-server
volumes:
- ./:/app/
ports:
- "3035:3035"
web:
build:
context: .
target: rails-builder
depends_on:
- chrome
- db
- webpacker
command: sh -c "
bundle exec rake db:migrate db:seed
&& rm -f tmp/pids/server.pid
&& bundle exec rails s -p 3000 -b '0.0.0.0'
"
container_name: "hunterskeepers_web"
ports:
- "3000:3000"
volumes:
- "./:/app/"
environment:
- WEBPACKER_DEV_SERVER_HOST=webpacker
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- DB_HOST=db
- HUB_URL=http://chrome:4444/wd/hub
chrome:
image: selenium/standalone-chrome:3.141.59-zirconium # this version should match that of the selenium-webdriver gem (see Gemfile)
volumes:
- /dev/shm:/dev/shm
volumes:
# Volume to hold the Postgres database on the host system
data: