-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 893 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (36 loc) · 893 Bytes
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
services:
db:
image: postgres:14
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: quote_editor_development
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
web:
build: .
command: bin/rails server -b 0.0.0.0
volumes:
- .:/app
- bundle:/usr/local/bundle
ports:
- "3000:3000"
depends_on:
- db
- chrome
environment:
BUNDLE_PATH: /usr/local/bundle
DATABASE_URL: postgres://postgres:postgres@db:5432/quote_editor_development
DATABASE_URL_TEST: postgres://postgres:postgres@db:5432/quote_editor_test
SELENIUM_REMOTE_URL: http://chrome:4444/wd/hub
RAILS_ENV: development
chrome:
image: seleniarm/standalone-chromium:latest
shm_size: 2gb
ports:
- "4444:4444"
volumes:
postgres_data:
bundle: