-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (35 loc) · 1.31 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
version: '3.5'
services:
front:
build: ./front/
restart: always
volumes:
- ./front/:/usr/src/
- ./front/package.json:/usr/src/package.json
- /usr/src/node_modules
labels:
traefik.enable: "true"
traefik.docker.network: "traefik_network"
traefik.http.services.baptistemrtfr.loadbalancer.server.port: "3000"
#HTTP
traefik.http.routers.front-baptistemrtfr.entrypoints: "http"
traefik.http.routers.front-baptistemrtfr.rule: "Host(`baptistemrt.fr`)"
traefik.http.routers.front-baptistemrtfr.middlewares: redirect-https
#HTTPS
traefik.http.routers.front-baptistemrtfr-secure.entrypoints: "https"
traefik.http.routers.front-baptistemrtfr-secure.rule: "Host(`baptistemrt.fr`)"
#TLS
traefik.http.routers.front-baptistemrtfr-secure.tls: "true"
traefik.http.routers.front-baptistemrtfr-secure.tls.certresolver: "le-baptistemrt"
traefik.http.routers.front-baptistemrtfr-secure.tls.domains[0].main: "baptistemrt.fr"
#Redirect https
traefik.http.middlewares.redirect-https.redirectscheme.scheme: "https"
traefik.http.middlewares.redirect-https.redirectscheme.permanent: "true"
networks:
- traefik_network
- baptistemrt
networks:
baptistemrt:
name: baptistemrt
traefik_network:
external: true