-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.prod.yml
38 lines (35 loc) · 1014 Bytes
/
docker-compose.prod.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
version: "3.5"
services:
portrait-front:
build:
context: front
dockerfile: Dockerfile
networks:
- nizhib
expose:
- 80
restart: always
labels:
- traefik.enable=true
- traefik.http.routers.portrait-front.entrypoints=https
- traefik.http.routers.portrait-front.rule=Host(`portrait.nizhib.ai`)
- traefik.http.routers.portrait-front.tls.certresolver=nizhib
portrait-back:
build:
context: back
dockerfile: Dockerfile
networks:
- nizhib
expose:
- 5000
restart: always
labels:
- traefik.enable=true
- traefik.http.routers.portrait-back.entrypoints=https
- traefik.http.routers.portrait-back.rule=Host(`portrait.nizhib.ai`) && PathPrefix(`/api`)
- traefik.http.routers.portrait-back.tls.certresolver=nizhib
- traefik.http.routers.portrait-back.middlewares=remove-api
- traefik.http.middlewares.remove-api.stripprefix.prefixes=/api
networks:
nizhib:
name: nizhib