forked from YACS-RCOS/yacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.11 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
version: '2'
services:
postgres:
image: postgres:9.5.6
restart: unless-stopped
expose:
- "5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
redis:
image: redis
restart: unless-stopped
expose:
- "6379"
volumes:
- ./data/redis/:/var/lib/redis/data/
nginx:
build: ./nginx
image: nginx:1.11.9
restart: unless-stopped
ports:
- "80:80"
- "443:443"
links:
- web
volumes:
- .:/usr/src/app/
web:
build: .
restart: unless-stopped
environment:
- RAILS_ENV=${RAILS_ENV}
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- SECRET_TOKEN=${SECRET_TOKEN}
- WEB_CONCURRENCY=${WEB_CONCURRENCY}
- MAX_THREADS=${MAX_THREADS}
volumes:
- .:/usr/src/app/
depends_on:
- postgres
- redis
command: bundle exec puma -C config/puma.rb
expose:
- "3000"
worker:
build: .
restart: unless-stopped
environment:
- RAILS_ENV=${RAILS_ENV}
volumes:
- .:/usr/src/app/
depends_on:
- postgres
- redis
command: bundle exec crono