-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
56 lines (56 loc) · 1.26 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
version: '3.5'
services:
app:
build:
context: .
image: accounts
ports:
- "2999:2999"
command: bash -c "rm -f tmp/pids/server.pid && rake about && rake db:migrate && bin/rails server -b '0.0.0.0' -p 2999"
stdin_open: true # allow for debugger
tty: true # interaction
volumes:
- .:/code
- /code/tmp/pids
- bundle_cache:/bundle_cache
networks:
- openstax
links:
- postgres
depends_on:
- postgres
- bundler
- chrome
environment:
- OXA_DB_HOST=postgres
- GEM_HOME=/bundle_cache
- HUB_URL=http://chrome:4444/wd/hub
postgres:
image: "postgres:9.5"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- openstax
environment:
- POSTGRES_USER=ox_accounts
- POSTGRES_PASSWORD=ox_accounts
- POSTGRES_DB=ox_accounts_dev
bundler:
image: busybox
volumes:
- bundle_cache:/bundle_cache
chrome:
# this version should match that of the selenium-webdriver gem (see Gemfile)
image: selenium/standalone-chrome:3.141.59-zirconium
volumes:
- /dev/shm:/dev/shm
networks:
- openstax
ports:
- "4444:4444"
networks:
openstax:
name: openstax
volumes:
pgdata:
bundle_cache: