35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
services:
|
|
oil:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: healthy-oil
|
|
|
|
ports:
|
|
- "3015:80"
|
|
|
|
networks:
|
|
- traefik-public
|
|
- default
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.docker.network=traefik-public
|
|
- traefik.constraint-label=traefik-public
|
|
|
|
- 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.entrypoints=web
|
|
|
|
- traefik.http.routers.healthy-oil-frontend-https.rule=Host(`healthy-oil.develop-cat.com`)
|
|
- 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.certresolver=le
|
|
|
|
# Enable redirection for HTTP and HTTPS
|
|
- traefik.http.routers.healthy-oil-frontend-http.middlewares=https-redirect
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|