forked from utlib/VisualCollation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
68 lines (63 loc) · 1.65 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
61
62
63
64
65
66
67
68
version: "3.7"
services:
app:
image: "quay.io/upennlibraries/vceditor_web:${RELEASE_TAG}"
command: server -b 0.0.0.0
environment:
- ADMIN_EMAIL
- APPLICATION_HOST
- HONEYBADGER_API_KEY
- MAILER_DEFAULT_FROM
- MAILER_DOMAIN
- MAILER_HOST
- MAILER_PORT
- MAILER_PWD
- MAILER_USR
- PROJECT_URL
- RAILS_ENV
- RAILS_SERVE_STATIC_FILES
- RELEASE_TAG
- SECRET_KEY_BASE
- XPROC_URL
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.${INSTANCE}-app.rule=Host(`${PROJECT_URL}`)"
- "traefik.http.routers.${INSTANCE}-app.entrypoints=${INSTANCE}"
- "traefik.http.services.${INSTANCE}-app.loadbalancer.server.port=3000"
networks:
- internal
- traefik
volumes:
- images:/usr/src/app/public/uploads
mongo:
image: mongo:4.0
volumes:
- db:/data/db
networks:
- internal
xproc:
image: "quay.io/upennlibraries/vceditor_idrovora:${RELEASE_TAG}"
command: --http 2000 --http-context-path /xproc --http-doc-root /docs /xpl
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.${INSTANCE}-xproc.rule=Host(`${PROJECT_URL}`) && PathPrefix(`/xproc`)"
- "traefik.http.routers.${INSTANCE}-xproc.entrypoints=${INSTANCE}"
- "traefik.http.services.${INSTANCE}-xproc.loadbalancer.server.port=2000"
networks:
- internal
- traefik
volumes:
- xproc:/docs
networks:
internal:
traefik:
external: true
volumes:
db:
name: ${INSTANCE}-db
xproc:
name: ${INSTANCE}-xproc
images:
name: ${INSTANCE}-images