mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: handle dev server proxy by traefik
This commit is contained in:
1 parent
5e81db2759
commit
9c9456693d
3 files changed
+30
No files matched your search
@@ -8,14 +8,19 @@ services:
|
||||
- '--api.insecure=true'
|
||||
- '--providers.docker=true'
|
||||
- '--providers.docker.exposedbydefault=false'
|
||||
- '--providers.file.directory=/etc/traefik/conf'
|
||||
- '--providers.file.watch=true'
|
||||
- '--entrypoints.web.address=:80'
|
||||
- '--entrypoints.websecure.address=:443'
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
- '8080:8080'
|
||||
extra_hosts:
|
||||
- 'host.docker.internal:host-gateway'
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ./traefik/conf:/etc/traefik/conf
|
||||
|
||||
db:
|
||||
image: mongo:6
|
||||
|
||||
Reference in new issue
Block a user