update docker

This commit is contained in:
Philip Cheung 2024-10-08 14:21:22 +08:00
parent 8095a71fc1
commit 0548ae4f47
1 changed files with 8 additions and 4 deletions

View File

@ -4,11 +4,11 @@ services:
context: .
dockerfile: Dockerfile
container_name: allAndOne
env_file:
- .env
ports:
- '3000:3000'
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
@ -29,7 +29,11 @@ services:
# Enable www redirection for HTTP and HTTPS
- traefik.http.routers.frontend-https.middlewares=www-redirect
- traefik.http.routers.frontend-http.middlewares=https-redirect,www-redirect
- traefik.http.routers.frontend-http.middlewares=https-redirect,www-redirect
networks:
- traefik-public
- default
- default
networks:
traefik-public:
# Allow setting it to false for testing
external: true