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