-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
45 lines (43 loc) · 971 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
---
version: '3'
services:
web:
build:
context: .
privileged: true
command: bundle exec puma -C ./config/puma.rb -e production
ports:
- "1337:1337"
volumes:
- "./db:/app/db:z"
- "./log:/app/log:z"
- "./tmp:/app/tmp:z"
links:
- redis
environment:
- HOST=0.0.0.0
- PORT=1337
- REDIS_HOST=redis
- REDIS_PORT=6379
- DATABASE_URL=sqlite3:/app/db/production.sqlite3
sidekiq:
build:
context: .
privileged: true
cap_add:
- "NET_RAW"
- "NET_ADMIN"
- "NET_BIND_SERVICE"
command: bundle exec sidekiq -C ./config/sidekiq.yml -r ./config/sidekiq.rb -r ./workers.rb -e production
volumes:
- "./db:/app/db:z"
- "./log:/app/log:z"
- "./tmp:/app/tmp:z"
links:
- redis
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- DATABASE_URL=sqlite3:/app/db/production.sqlite3
redis:
image: redis