24 lines
672 B
YAML
24 lines
672 B
YAML
version: '3.4'
|
|
|
|
services:
|
|
oc-scheduler:
|
|
environment:
|
|
- MONGO_DATABASE=DC_myDC
|
|
image: 'oc-scheduler:latest'
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.scheduler.entrypoints=web"
|
|
- "traefik.http.routers.scheduler.rule=Host(`localhost`)"
|
|
- "traefik.routers.scheduler.rule=Path(/scheduler)"
|
|
- "traefik.http.routers.scheduler.tls=false"
|
|
- "traefik.http.services.scheduler.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.scheduler.middlewares=auth"
|
|
ports:
|
|
- 8090:8080
|
|
container_name: oc-scheduler
|
|
networks:
|
|
- catalog
|
|
|
|
networks:
|
|
catalog:
|
|
external: true |