-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
45 lines (43 loc) · 1.15 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
42
43
44
45
version: '3'
services:
reverse-proxy:
image: traefik:v2.9
networks:
- mauve-dex-app
ports:
- 4081:8081
- 4080:8080
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock:z
- ./.traefik:/etc/traefik:ro
security_opt:
- "label=disable"
labels:
- traefik.enable=true
- traefik.http.routers.dashboard.entryPoints=dashboard
- traefik.http.routers.dashboard.rule=(PathPrefix(`/api`) || PathPrefix(`/dashboard`))
- traefik.http.routers.dashboard.service=api@internal
ui:
build:
context: .
args:
- NPM_TOKEN=$NPM_TOKEN
- ENVIRONMENT=local
dockerfile: ./Dockerfile
target: release
networks:
- mauve-dex-app
environment:
- NODE_ENV=production
env_file:
- ./.env
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
labels:
- traefik.enable=true
- traefik.http.routers.to-ui.entryPoints=web
- traefik.http.routers.to-ui.rule=PathPrefix(`/`)
- traefik.http.services.to-ui.loadbalancer.server.port=8080
networks:
mauve-dex-app: