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.
adc/ansible/roles/test/templates/test-compose.yml

62 lines
2.0 KiB

version: '3.3'
networks:
gitea:
external: false
volumes:
traefik_acme:
traefik_logs:
services:
traefik:
image: traefik:v2.2
environment:
DO_AUTH_TOKEN: "{{ DO_AUTH_TOKEN }}"
ports:
- 80:80/tcp
- 443:443/tcp
- 8080:8080/tcp
volumes:
- traefik_acme:/acme
- traefik_logs:/log
- /var/run/docker.sock:/var/run/docker.sock
- /home/josiah/apps/test/traefik.toml:/etc/traefik/traefik.toml
deploy:
mode: global
placement:
constraints:
- node.role == manager
labels:
- "traefik.enable=true"
# Dashboard
- "traefik.http.routers.awfulAll-traefik-api.rule=Host(`awful-1.awful.club`)&&(PathPrefix(`/dashboard`)"
- "traefik.http.routers.awfulAll-traefik-api.service=api@internal"
- "traefik.http.routers.awfulAll-traefik-api.entryPoint=https"
- "traefik.http.routers.awfulAll-traefik-api.tls.certresolver=awfulAll-resolver"
- "traefik.http.routers.awfulAll-traefik-api.tls=true"
awfulAll-whoami:
image: containous/whoami:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.awfulAll-whoami.rule=Host(`whoami.awful.club`)"
- "traefik.http.routers.awfulAll-whoami.service=awfulAll-whoami"
- "traefik.http.routers.awfulAll-whoami.entryPoint=https"
- "traefik.http.routers.awfulAll-whoami.tls.certresolver=awfulAll-resolver"
- "traefik.http.routers.awfulAll-whoami.tls=true"
# root-handlers:
# image: nginx:1.18
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.awfulAll-whoami.rule=Host(`whoami.awful.club`)"
# - "traefik.http.routers.awfulAll-whoami.service=awfulAll-whoami"
# - "traefik.http.routers.awfulAll-whoami.entryPoints=https"
# - "traefik.http.routers.awfulAll-whoami.tls.certresolver=awfulAll-resolver"
# # - "traefik.http.services.awfulAll-whoami.loadbalancer.server.port=443"
# volumes:
# - /home/josiah/apps/nginx:/etc/nginx/conf.d