-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
77 lines (71 loc) · 1.72 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
version: '3.8'
services:
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=dev
- POSTGRES_USER=wrp
- POSTGRES_DB=wetrockpolice_development
ports:
- '5432:5432'
volumes:
- wetrockpolice-postgres:/var/lib/postgresql/data:Z
env_file:
- .env
redis:
image: redis
ports:
- '6379:6379'
volumes:
- wetrockpolice-redis:/var/lib/redis/data
web:
build:
context: .
dockerfile: Dockerfile.development
args:
RAILS_ENV: development
# uncomment the following line to start a web server with a debugger
# command: bundle exec rdebug-ide --debug --host 0.0.0.0 --port 1234 -- bin/rails server -p 3001 -b 0.0.0.0
volumes:
- .:/opt/wetrockpolice
- /opt/wetrockpolice/tmp
- /opt/wetrockpolice/node_modules
ports:
- "3001:3001"
depends_on:
- postgres
- redis
env_file:
- .env
webpacker:
build:
context: .
dockerfile: Dockerfile.development
args:
RAILS_ENV: development
command: bash -c "rm -rf /opt/wetrockpolice/public/packs && NODE_OPTIONS=--openssl-legacy-provider ./bin/webpack-dev-server"
volumes:
- .:/opt/wetrockpolice
- /opt/wetrockpolice/tmp
- /opt/wetrockpolice/node_modules
ports:
- '3035:3035'
env_file:
- .env
sidekiq:
build:
context: .
dockerfile: Dockerfile.development
command: bundle exec sidekiq -q default -q mailers
volumes:
- .:/opt/wetrockpolice
- /opt/wetrockpolice/tmp
- /opt/wetrockpolice/node_modules
depends_on:
- postgres
- redis
env_file:
- .env
volumes:
wetrockpolice-redis:
wetrockpolice-postgres: