forked from ualbertalib/jupiter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.deployment.yml
83 lines (75 loc) · 1.43 KB
/
docker-compose.deployment.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
78
79
80
81
82
83
version: '3'
volumes:
postgres:
driver: local
solr:
driver: local
fcrepo:
driver: local
redis:
driver: local
assets:
driver: local
file-storage:
driver: local
services:
postgres:
restart: always
image: postgres:9.6-alpine
env_file: .env_deployment
solr:
restart: always
image: solr:6.6
ports:
- "8983:8983"
volumes:
- solr:/opt/solr/server/solr/mycores
- ./solr/config:/config
entrypoint:
- docker-entrypoint.sh
- solr-precreate
- jupiter-uat
- /config
fcrepo:
restart: always
image: ualbertalib/docker-fcrepo4
volumes:
- fcrepo:/fcrepo4-data
ports:
- "8080:8080"
redis:
restart: always
image: redis:alpine
volumes:
- redis:/data
# Sidekiq
worker: &rails
restart: always
image: ualbertalib/jupiter:deployment
volumes:
- file-storage:/app/storage/
command: bundle exec sidekiq
env_file: .env_deployment
depends_on:
- postgres
- fcrepo
- redis
- solr
# Rails
web:
<<: *rails
volumes:
- assets:/app/public/assets/
- file-storage:/app/storage/
command: bundle exec puma -e uat
nginx:
restart: always
image: nginx
depends_on:
- web
env_file: .env_deployment
volumes:
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf
- assets:/app/public/assets/
ports:
- "80:80"