-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (38 loc) · 1.35 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
38
39
40
41
version: "3.8"
services:
backend:
container_name: duostats-2023-backend
build:
context: ./backend
dockerfile: production.Dockerfile
restart: unless-stopped
networks:
- default
- traefik-reverse-proxy
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-reverse-proxy"
- "traefik.http.routers.duostats-2023-backend.rule=Host(`${BASE_URL:-duostats-2023.localhost}`) && PathPrefix(`/api`)"
- "traefik.http.routers.duostats-2023-backend.entrypoints=https"
- "traefik.http.routers.duostats-2023-backend.tls=true"
frontend:
container_name: duostats-2023-frontend
build:
context: ./frontend
dockerfile: production.Dockerfile
restart: unless-stopped
networks:
- default
- traefik-reverse-proxy
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-reverse-proxy"
- "traefik.http.routers.duostats-2023-frontend.rule=Host(`${BASE_URL:-duostats-2023.localhost}`) && !PathPrefix(`/api`)"
- "traefik.http.routers.duostats-2023-frontend.entrypoints=https"
- "traefik.http.routers.duostats-2023-frontend.tls=true"
# You can find the Traefik reverse proxy container on GitHub
# https://github.com/CrazyVito11/traefik-reverse-proxy
networks:
traefik-reverse-proxy:
name: traefik-reverse-proxy
external: true