-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (60 loc) · 1.22 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
63
64
65
66
x-base: &base
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
- .env.override
environment:
- POSTGRES_HOST=database
- SELENIUM_REMOTE_HOST=selenium-chrome
volumes:
- $PWD:/app:delegated
- bundle_cache:/usr/local/bundle:cached
- node_modules:/app/node_modules:cached
tty: true
stdin_open: true
services:
app:
<<: *base
command: bin/rails server -p 3000 -b 0.0.0.0
ports:
- "80:3000"
depends_on:
- database
- js
- selenium-chrome
js:
<<: *base
command: yarn build --watch
depends_on:
- css
css:
<<: *base
command: yarn build:css --watch
database:
image: postgres:13.2
ports:
- "5432:5432"
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- db_data:/var/lib/postgresql/data:cached
- db_dump:/app/db_dump:cached
selenium-chrome:
image: selenium/standalone-chrome-debug:latest
shm_size: 2G
logging:
driver: none
ports:
- 5900:5900
environment:
- SCREEN_WIDTH=1680
- SCREEN_HEIGHT=1050
extra_hosts:
- "host.docker.internal:host-gateway" # To work on Linux
volumes:
db_data:
db_dump:
bundle_cache:
node_modules: