-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack.yml
28 lines (26 loc) · 1.15 KB
/
stack.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
version: '3'
services:
real-estate-api:
image: stivenramireza/real-estate-api:latest
ports:
- 8000
networks:
- traefik-public
deploy:
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.middlewares.real-estate-api-https.stripprefix.prefixes=/
- traefik.http.routers.real-estate-api-http.rule=Host(`${DOMAIN?Variable not set}`) && PathPrefix(`/`)
- traefik.http.routers.real-estate-api-http.entrypoints=http
- traefik.http.routers.real-estate-api-http.middlewares=https-redirect
- traefik.http.routers.real-estate-api-https.rule=Host(`${DOMAIN?Variable not set}`) && PathPrefix(`/`)
- traefik.http.routers.real-estate-api-https.middlewares=real-estate-api-https
- traefik.http.routers.real-estate-api-https.entrypoints=https
- traefik.http.routers.real-estate-api-https.tls=true
- traefik.http.routers.real-estate-api-https.tls.certresolver=le
- traefik.http.services.real-estate-api.loadbalancer.server.port=8000
networks:
traefik-public:
external: true