-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (58 loc) · 1004 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
53
54
55
56
57
58
version: '3'
services:
postgres:
image: postgres:9.5.20-alpine
env_file:
- '.env'
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis
volumes:
- redis:/var/lib/redis/data
app:
build: ./app
command: bundle exec rackup -p 9292 --host 0.0.0.0
volumes:
- ./app:/app
env_file:
- '.env'
ports:
- "9292:9292"
links:
- postgres
- redis
depends_on:
- postgres
- redis
web:
build: ./web
links:
- postgres
- redis
depends_on:
- app
- redis
ports:
- 80:80
- 443:443
env_file:
- '.env'
volumes:
- ./web/tmp/www:/var/www/app
sidekiq:
links:
- postgres
- redis
depends_on:
- postgres
- redis
build: ./worker
volumes:
- './worker:/worker'
env_file:
- '.env'
command: bundle exec sidekiq -r /worker/workers/svc_postman_worker.rb
volumes:
postgres:
redis: