-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
42 lines (41 loc) · 1.14 KB
/
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
39
40
41
42
version: '3.7'
services:
frontend:
container_name: dash
restart: always
ports:
- "3000:80"
networks:
- web
- default
build:
context: ./frontend
labels:
- "traefik.enable=true"
- "traefik.http.routers.tim-dash.rule=Host(`dashboard.${DOMAIN}`)"
- "traefik.http.routers.tim-dash.entrypoints=websecure"
- "traefik.http.routers.tim-dash.tls.certresolver=le"
- "traefik.http.routers.tim-dash.tls=true"
- "traefik.http.services.tim-dash.loadbalancer.server.port=80"
docs:
container_name: dashdocs
restart: always
ports:
- "8034:80"
networks:
- web
- default
build:
context: .
dockerfile: ./Dockerfile.docs
labels:
- "traefik.enable=true"
- "traefik.http.routers.tim-dash-rtd.rule=Host(`dashboard-rtd.${DOMAIN}`)"
- "traefik.http.routers.tim-dash-rtd.entrypoints=websecure"
- "traefik.http.routers.tim-dash-rtd.tls.certresolver=le"
- "traefik.http.routers.tim-dash-rtd.tls=true"
- "traefik.http.services.tim-dash-rtd.loadbalancer.server.port=80"
networks:
web:
external: true
name: web