-
Notifications
You must be signed in to change notification settings - Fork 103
/
docker-compose.local.yml
38 lines (36 loc) · 1.25 KB
/
docker-compose.local.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
services:
proxy:
image: traefik:v2.3
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "80:80"
restart: always
command:
- --providers.docker
- --providers.docker.constraints=Label(`traefik.constraint-label`, `traefik-public`)
- --providers.docker.exposedbydefault=false
- --entrypoints.http.address=:80
- --accesslog
- --log
- --api
labels:
- traefik.enable=true
- traefik.constraint-label=traefik-public
- traefik.http.middlewares.https-redirect.contenttype.autodetect=false
- traefik.http.services.traefik-dashboard.loadbalancer.server.port=8080
- traefik.http.routers.traefik-dashboard-http.entrypoints=http
- traefik.http.routers.traefik-dashboard-http.rule=Host(`traefik.localhost`)
- traefik.http.routers.traefik-dashboard-http.service=api@internal
- traefik.http.middlewares.admin-auth.basicauth.users=${USERNAME?Variable not set}:${HASHED_PASSWORD?Variable not set}
- traefik.http.routers.traefik-dashboard-http.middlewares=admin-auth
networks:
- traefik-public
- default
frontend:
build:
args:
- VITE_API_URL=http://${DOMAIN?Variable not set}
networks:
traefik-public:
external: false