-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (58 loc) · 1.41 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
version: "3"
services:
postgres:
image: postgres:12.2
volumes:
- pp:/var/lib/postgresql/data:z
expose:
- ${POSTGRES_PORT}
env_file: .env
ports:
- "5433:5432"
web:
build: rest
restart: always
command: ${SERVE_COMMAND}
volumes:
- ./rest/app:/vol/app:z
- ppstatic:/vol/static_files:z
- ${REAL_IMAGE_DIR}:/vol/img:z
expose:
- 8000
links:
- "postgres:postgres"
env_file: .env
depends_on:
- postgres
nginx:
image: nginx:1.17.10
restart: always
volumes:
- ppstatic:/vol/static_files:z
- ${REAL_IMAGE_DIR}:/vol/img:z
- ./nginx:/etc/nginx/conf.d:z
- ./nginx/certs:/etc/nginx/conf.d/certs
ports:
- "443:443"
- "80:80"
env_file: .env
links:
- "web:web"
- "iiif:iiif"
depends_on:
- web
command: sh -c "envsubst '$$ALLOWED_HOSTS $$CERT_PATH $$KEY_PATH $$PP_NGINX_LISTEN $$PP_NGINX_SERVER_NAME $$HTTPS_REDIRECT' < /etc/nginx/conf.d/pp.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
iiif:
image: mdlincoln/go-iiif-vips:latest
restart: always
volumes:
- ./iiif:/etc/iiif-server:z
- ${REAL_IMAGE_DIR}:/usr/local/images:z
expose:
- 80
command: "/bin/iiif-server -host 0.0.0.0 -port 80 -config-source file:///etc/iiif-server -config-name config.json"
volumes:
pp:
ppstatic:
pp-images:
iiif: