-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (46 loc) · 913 Bytes
/
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
version: '3.4'
x-chores-common:
&chores-common
build:
context: .
args:
USERNAME: $USER
UID: ${USER_ID:-0}
GID: ${GROUP_ID:-0}
volumes:
- .:/app
- chores-gems:/gems
- /app/node_modules
stdin_open: true # docker run -i
tty: true # docker run -t
# user: $USER
links:
- db
environment:
DB_DEV: chores-development
DB_HOST: db
DB_TEST: chores-test
DB_USERNAME: postgres
REDIS_URL: redis://redis:6379
services:
web:
<< : *chores-common
command: "./script/start-dev.sh"
ports:
- "3000:3000"
worker:
<< : *chores-common
command: bundle exec sidekiq -r . -C config/sidekiq.yml
db:
image: postgres:11.5
volumes:
- chores-data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
chores-data:
chores-gems: