-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1.6 KB
/
docker-compose.yml
File metadata and controls
51 lines (49 loc) · 1.6 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
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
nginx:
image: nginxinc/nginx-unprivileged:alpine
networks:
- app
- frontend
depends_on:
- signing-server
ports:
- "8080"
volumes:
- ./.docker/templates:/etc/nginx/templates:ro
- .:/app
environment:
NGINX_PORT: 8080
NGINX_MAX_BODY_SIZE: ${MAX_UPLOAD_SIZE:-56M}
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_DOMAIN}`)"
# HTTPS config - uncomment to enable redirect from :80 to :443
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=redirect-to-https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
signing-server:
build: .
ports:
- "8088"
networks:
- app
environment:
PUID: ${PUID:-1000}
PGID: ${PGID:-1000}
# Override Spring/Tomcat upload size settings from .env
SPRING_SERVLET_MULTIPART_MAX_FILE_SIZE: ${MAX_UPLOAD_SIZE:-56M}B
SPRING_SERVLET_MULTIPART_MAX_REQUEST_SIZE: ${MAX_UPLOAD_SIZE:-56M}B
SERVER_TOMCAT_MAX_HTTP_FORM_POST_SIZE: ${MAX_UPLOAD_SIZE_BYTES:-58720256}
SERVER_TOMCAT_MAX_SWALLOW_SIZE: ${MAX_UPLOAD_SIZE_BYTES:-58720256}
volumes:
- ./config/application.yaml:/app/config/application.yaml:ro
- ./config/certificate.p12:/app/config/certificate.p12:ro
- ./signed-documents:/app/signed-documents
- ./signers-documents:/app/signers-documents
- ./temp-documents:/app/temp-documents