infrastructure/ansible/roles/upload/files/docker-compose.yml

68 lines
1.6 KiB
YAML
Raw Normal View History

2020-05-08 21:27:32 +01:00
version: "2.3"
services:
webdav:
image: ghcr.io/realorangeone/webdav:latest
2020-05-08 21:27:32 +01:00
restart: unless-stopped
volumes:
- ./files:/srv
- ./htpasswd.txt:/etc/nginx/.htpasswd:ro
2020-05-08 21:27:32 +01:00
environment:
- PUID={{ docker_user.id }}
2020-05-08 21:27:32 +01:00
labels:
2020-06-18 20:49:12 +01:00
- traefik.enable=true
- traefik.http.routers.upload.rule=Host(`upload.theorangeone.net`)
networks:
- default
- traefik
2020-05-08 21:27:32 +01:00
img:
image: ghcr.io/realorangeone/static-server:latest
2020-05-08 21:27:32 +01:00
restart: unless-stopped
volumes:
2021-01-28 14:04:55 +00:00
- ./files/img:/srv:ro
environment:
- PUID={{ docker_user.id }}
2020-05-08 21:27:32 +01:00
labels:
2020-06-18 20:49:12 +01:00
- traefik.enable=true
- traefik.http.routers.img.rule=Host(`img.theorangeone.net`)
- traefik.http.routers.0rng-img.tls.certresolver=gandi
- traefik.http.routers.0rng-img.rule=Host(`img.0rng.one`)
networks:
- default
- traefik
2020-05-08 21:27:32 +01:00
bg:
image: ghcr.io/realorangeone/static-server:latest
2020-05-08 21:27:32 +01:00
restart: unless-stopped
volumes:
- ./files/bg:/srv:ro
2020-05-09 17:14:16 +01:00
environment:
- FANCY_INDEX=on
- PUID={{ docker_user.id }}
2020-05-08 21:27:32 +01:00
labels:
2020-06-18 20:49:12 +01:00
- traefik.enable=true
- traefik.http.routers.bg.rule=Host(`bg.theorangeone.net`)
networks:
- default
- traefik
2020-05-08 21:27:32 +01:00
dl:
image: ghcr.io/realorangeone/static-server:latest
2020-05-08 21:27:32 +01:00
restart: unless-stopped
volumes:
- ./files/dl:/srv:ro
environment:
- PUID={{ docker_user.id }}
2020-05-08 21:27:32 +01:00
labels:
2020-06-18 20:49:12 +01:00
- traefik.enable=true
- traefik.http.routers.dl.rule=Host(`dl.theorangeone.net`) || Host(`dl.0rng.one`)
networks:
- default
- traefik
networks:
traefik:
external: true