-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
45 lines (40 loc) · 1.09 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
# docker-compose.yml
version: '3.2'
volumes:
dbdata:
driver: local
services:
db:
image: postgres:11
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=rails
- POSTGRES_PASSWORD=secret123
volumes:
- dbdata:/var/lib/postgresql/data/pgdata
web:
image: jobsapp
environment:
- RAILS_ENV=development
- RACK_ENV=development
- POSTGRES_USER=rails
- POSTGRES_PASSWORD=secret123
- HUB_URL=http://chrome:4444
depends_on:
- db
- chrome
cron:
image: jobsapp
environment:
- RAILS_ENV=development
- RACK_ENV=development
- POSTGRES_USER=rails
- POSTGRES_PASSWORD=secret123
depends_on:
- db
command: "/bin/sh -c 'whenever --write-crontab && touch /var/log/cron.log && cron && tail -f /var/log/cron.log'"
chrome:
# image: selenium/standalone-chrome:3.142.7-zirconium # this version should match that of the selenium-webdriver gem (see Gemfile)
image: selenium/standalone-chrome:4.0.0-beta-1-prerelease-20210106
volumes:
- /dev/shm:/dev/shm