-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (62 loc) · 1.39 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (62 loc) · 1.39 KB
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
# All containers start with RAILS_ENV Development
# A test container is started too with RAILS_ENV Test for Cucumber and Rspecs
version: '3.7'
services:
# Run your tests in this container
testrunner:
stdin_open: true
tty: true
image: my_image_base:latest
command: ["./boot.sh", "spin"]
volumes:
- .:/home/appuser/project:cached
- /home/appuser/project/log/
- /home/appuser/project/tmp/
env_file:
- config/env-dev
environment:
- RAILS_ENV=test
- RACK_ENV=test
networks:
local:
aliases:
- testrunner
web:
stdin_open: true
tty: true
image: my_image_base:latest
command: ["./boot.sh", "web"]
volumes:
- .:/home/appuser/project:cached
- /home/appuser/project/log/
- /home/appuser/project/tmp/
expose:
- "3000"
ports:
- "3000:3000"
env_file:
- config/env-dev
environment:
# Make it easier to debug using pry
WEB_CONCURRENCY: 1
networks:
local:
aliases:
- web
worker:
stdin_open: true
tty: true
image: my_image_base:latest
command: ["./boot.sh", "worker"]
volumes:
- .:/home/appuser/project:cached
- /home/appuser/project/log/
- /home/appuser/project/tmp/
env_file:
- config/env-dev
networks:
local:
aliases:
- worker
networks:
local: