docker file changed
This commit is contained in:
@@ -4,10 +4,9 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: healthy-oil
|
container_name: healthy-oil
|
||||||
|
|
||||||
volumes:
|
ports:
|
||||||
- .:/app
|
- "3015:80"
|
||||||
- /app/node_modules
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- traefik-public
|
- traefik-public
|
||||||
@@ -20,10 +19,10 @@ services:
|
|||||||
- traefik.http.services.healthy-oil-frontend.loadbalancer.server.port=80
|
- traefik.http.services.healthy-oil-frontend.loadbalancer.server.port=80
|
||||||
|
|
||||||
- traefik.http.routers.healthy-oil-frontend-http.rule=Host(`healthy-oil.develop-cat.com`)
|
- traefik.http.routers.healthy-oil-frontend-http.rule=Host(`healthy-oil.develop-cat.com`)
|
||||||
- traefik.http.routers.healthy-oil-frontend-http.entrypoints=http
|
- traefik.http.routers.healthy-oil-frontend-http.entrypoints=web
|
||||||
|
|
||||||
- traefik.http.routers.healthy-oil-frontend-https.rule=Host(`healthy-oil.develop-cat.com`)
|
- traefik.http.routers.healthy-oil-frontend-https.rule=Host(`healthy-oil.develop-cat.com`)
|
||||||
- traefik.http.routers.healthy-oil-frontend-https.entrypoints=https
|
- traefik.http.routers.healthy-oil-frontend-https.entrypoints=websecure
|
||||||
- traefik.http.routers.healthy-oil-frontend-https.tls=true
|
- traefik.http.routers.healthy-oil-frontend-https.tls=true
|
||||||
# - traefik.http.routers.healthy-oil-frontend-https.tls.certresolver=le
|
# - traefik.http.routers.healthy-oil-frontend-https.tls.certresolver=le
|
||||||
|
|
||||||
@@ -32,3 +31,4 @@ services:
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik-public:
|
traefik-public:
|
||||||
|
external: true
|
||||||
|
|||||||
27
traefik-docker-compose.yml
Normal file
27
traefik-docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
traefik:
|
||||||
|
image: traefik:v3.1
|
||||||
|
container_name: traefik
|
||||||
|
restart: unless-stopped
|
||||||
|
command:
|
||||||
|
- "--api.dashboard=true"
|
||||||
|
- "--api.insecure=true"
|
||||||
|
- "--providers.docker=true"
|
||||||
|
- "--providers.docker.exposedbydefault=false"
|
||||||
|
- "--entrypoints.web.address=:80"
|
||||||
|
- "--entrypoints.websecure.address=:443"
|
||||||
|
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
|
||||||
|
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
- "8080:8080" # Traefik dashboard
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
networks:
|
||||||
|
- traefik-public
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik-public:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user