-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (58 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
62
version: "3"
volumes:
pg_data:
driver: local
services:
pg:
image: postgres:11
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- pg_data:/var/lib/postgresql/data
mailcatcher:
image: schickling/mailcatcher
ports:
- "3002:1080"
base: &base
build:
context: .
dockerfile: docker/app/Dockerfile.dev
cache_from:
- importmap-sample-development-cache
image: importmap-sample-development:0.1.0
wait-middleware: &wait-middleware
<<: *base
environment:
WAIT_HOSTS: pg:5432, mailcatcher:1025
depends_on:
- pg
- mailcatcher
command: /wait
app:
<<: *base
stdin_open: true
tty: true
volumes:
- .:/src
user: ${ARG_USER:-ruby}
command: >
/bin/sh -c "rm -f tmp/pids/server.pid && bundle install && bundle exec bin/rails s -b 0.0.0.0"
ports:
- 3000:3000
environment:
BUNDLE_PATH: ${BUNDLE_PATH:-/src/vendor/bundle}
DB_HOST: pg
DB_USERNAME: postgres
DB_PASSWORD: password
DB_PORT: 5432
SMTP_HOST: mailcatcher
SMTP_PORT: 1025
SELENIUM_REMOTE_URL: http://webdriver_chrome:4444/wd/hub
depends_on:
- pg
- mailcatcher
- webdriver_chrome
webdriver_chrome:
image: selenium/standalone-chrome
shm_size: 256m