-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-cloud.yml
More file actions
91 lines (77 loc) · 1.8 KB
/
Copy pathdocker-compose-cloud.yml
File metadata and controls
91 lines (77 loc) · 1.8 KB
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
87
88
89
version: '3'
services:
postgres:
image: postgres:9.5
environment:
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_USER=dungeon
volumes:
- sql-data:/var/lib/postgresql/data
redis:
image: redis:latest
proxy:
image: 'nginx:latest'
ports:
- "80:80"
volumes:
- ./docker/nginx/:/etc/nginx/conf.d/
- assets:/dungeon/public/assets/
- images:/dungeon/public/images/
depends_on:
- web1
- web2
- web3
- web4
web1:
build: .
image: 'danelbert/dungeon:beta'
environment:
- RAILS_ENV=production
- SECRET_KEY_BASE=1c0fb1f70630f29ccc573c6c8438bba76f93423f4dc2aa3f1d2de7a53734e6ae8e88defb36c2f802c023b994355ad1c4b9775154d65fcfdd7ab41d82f211763d
- COPY_ASSETS=true
- LOGLEVEL=info
volumes:
- assets:/dungeon_assets/
- images:/dungeon/public/images/
- logs:/dungeon/log
depends_on:
- redis
- postgres
web2: &web
image: 'danelbert/dungeon:beta'
environment:
- RAILS_ENV=production
- SECRET_KEY_BASE=1c0fb1f70630f29ccc573c6c8438bba76f93423f4dc2aa3f1d2de7a53734e6ae8e88defb36c2f802c023b994355ad1c4b9775154d65fcfdd7ab41d82f211763d
- LOGLEVEL=info
volumes:
- images:/dungeon/public/images/
- logs:/dungeon/log
depends_on:
- redis
- postgres
web3:
<<: *web
web4:
<<: *web
worker:
image: 'registry.elbert.us/dungeon:production'
restart: unless-stopped
volumes:
- images:/dungeon/public/images/
- logs:/dungeon/log/
environment:
- RAILS_ENV=production
- QUEUE=*
- INTERVAL=1.0
command: 'bundle exec rake resque:work'
links:
- redis
volumes:
sql-data:
driver: local
assets:
driver: local
images:
driver: local
logs:
driver: local