-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (33 loc) · 1.02 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
version: '3.9'
services:
frontend:
image: ${IMAGE}:${TAG}
expose:
- 8080
restart: always
networks:
- traefik-net
labels:
traefik.enable: true
traefik.http.routers.er-front.rule: 'Host(`${DEPLOY_HOST}`)'
traefik.http.routers.er-front.entrypoints: https
traefik.http.routers.er-front.tls: true
traefik.http.routers.er-front.tls.certresolver: letsencrypt
traefik.http.services.er-front.loadBalancer.server.port: 8080
traefik.http.middlewares.er-front-headers.headers.customresponseheaders.cache-control: max-age=604800
traefik.http.middlewares.er-front-compress.compress: true
traefik.http.routers.er-front.middlewares: er-front-headers,er-front-compress
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8080/
interval: 10s
retries: 3
timeout: 1s
start_period: 5s
logging:
driver: json-file
options:
max-size: 10m
networks:
traefik-net:
external: true
name: traefik-net