infrastructure/ansible/roles/upload/files/docker-compose.yml
Jake Howard 3da14e67dd
Replace minio with webdav for upload
Also made sure it all ran as the correct user
2021-05-04 14:08:08 +01:00

52 lines
1.4 KiB
YAML

version: "2.3"
services:
webdav:
image: theorangeone/webdav:latest
restart: unless-stopped
volumes:
- ./files:/srv
- ./htpasswd.txt:/etc/nginx/.htpasswd:ro
environment:
- PUID={{ docker_user.id }}
labels:
- traefik.enable=true
- traefik.http.routers.upload.rule=Host(`upload.theorangeone.net`)
- traefik.http.routers.upload.tls.certresolver=le
img:
image: theorangeone/static-server:latest
restart: unless-stopped
volumes:
- ./files/img:/srv:ro
environment:
- PUID={{ docker_user.id }}
labels:
- traefik.enable=true
- traefik.http.routers.img.rule=Host(`img.theorangeone.net`) || Host(`img.0rng.one`)
- traefik.http.routers.img.tls.certresolver=le
bg:
image: theorangeone/static-server:latest
restart: unless-stopped
volumes:
- ./files/bg:/srv:ro
environment:
- FANCY_INDEX=on
- PUID={{ docker_user.id }}
labels:
- traefik.enable=true
- traefik.http.routers.bg.rule=Host(`bg.theorangeone.net`)
- traefik.http.routers.bg.tls.certresolver=le
dl:
image: theorangeone/static-server:latest
restart: unless-stopped
volumes:
- ./files/dl:/srv:ro
environment:
- PUID={{ docker_user.id }}
labels:
- traefik.enable=true
- traefik.http.routers.dl.rule=Host(`dl.theorangeone.net`) || Host(`dl.0rng.one`)
- traefik.http.routers.dl.tls.certresolver=le