docs-vlabs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.1 KiB

version: "3.3"
services:
traefik:
image: traefik
command: --web \
--docker \
--docker.swarmMode \
--docker.domain=swarm \
--docker.watch \
--logLevel=DEBUG \
--api
networks:
- traefik-net
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /dev/null:/traefik.toml
deploy:
placement:
constraints:
- node.id == ${REGISTERid}
docs:
image: registry.vlabs.uniwa.gr:5080/vlab-apache2
networks:
- traefik-net
deploy:
replicas: 1
placement:
constraints:
- node.id == ${REGISTERid}
labels:
- "traefik.enable=true"
- "traefik.port=80"
- "traefik.docker.network=mystack_traefik-net"
- "traefik.frontend.rule=Host:docs.vlabs.uniwa.gr"
- "traefik.backend=docsswarm"
volumes:
- "/var/lab/html/files:/var/www/html/files"
- "/mnt/web/docs_vlabs:/var/www/html"
- "/mnt/web/docs_vlabs_conf/httpd.conf:/etc/apache2/sites-enabled/000-default.conf"
networks:
traefik-net:
volumes:
portainerdata: