-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (80 loc) · 2.07 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3.7'
services:
postgres:
image: postgres
environment:
POSTGRES_USER: slg
POSTGRES_PASSWORD: dev
ports:
- '5432:5432'
volumes:
- slacklinegroups-postgres:/var/lib/postgresql/data
redis:
image: redis
ports:
- '6379:6379'
volumes:
- slacklinegroups-redis:/var/lib/redis/data
slacklinegroups:
build:
context: slacklinegroups/.
dockerfile: Dockerfile.development
args:
USER_ID: "${USER_ID:-1000}"
GROUP_ID: "${GROUP_ID:-1000}"
RAILS_ENV: development
depends_on:
- postgres
# command: bundle exec rdebug-ide --debug --host 0.0.0.0 --port 1234 -- bin/rails server -p 3001 -b 0.0.0.0
volumes:
- type: bind
source: ./slacklinegroups
target: /opt/app/slacklinegroups
- /opt/app/slacklinegroups/node_modules
- /opt/app/slacklinegroups/tmp
ports:
- '3001:3001'
env_file:
- .env
sidekiq:
build:
context: slacklinegroups/.
dockerfile: Dockerfile.development
args:
USER_ID: "${USER_ID:-1000}"
GROUP_ID: "${GROUP_ID:-1000}"
RAILS_ENV: development
command: bundle exec sidekiq -q default -q mailers
depends_on:
- postgres
- redis
volumes:
- type: bind
source: ./slacklinegroups
target: /opt/app/slacklinegroups
- /opt/app/slacklinegroups/tmp
- /opt/app/slacklinegroups/node_modules
env_file:
- .env
webpacker:
build:
context: slacklinegroups/.
dockerfile: Dockerfile.development
args:
USER_ID: "${USER_ID:-1000}"
GROUP_ID: "${GROUP_ID:-1000}"
RAILS_ENV: development
volumes:
- type: bind
source: ./slacklinegroups
target: /opt/app/slacklinegroups
- /opt/app/slacklinegroups/tmp
- /opt/app/slacklinegroups/node_modules
command: bash -c "rm -rf /opt/app/slacklinegroups/public/packs; bin/webpack-dev-server"
env_file:
- .env
ports:
- 3035:3035
volumes:
slacklinegroups-postgres:
slacklinegroups-redis: