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

49 lines
1.4 KiB
YAML
Raw Normal View History

2020-05-08 21:27:32 +01:00
version: "2.3"
services:
upload:
image: minio/minio:latest
restart: unless-stopped
volumes:
2020-07-24 17:14:39 +01:00
- /mnt/tank/upload:/data
2020-05-08 21:27:32 +01:00
command: server /data --quiet
environment:
- MINIO_ACCESS_KEY={{ minio_access_key }}
- MINIO_SECRET_KEY={{ minio_secret_key }}
labels:
2020-06-18 20:49:12 +01:00
- traefik.enable=true
- traefik.http.routers.upload.rule=Host(`upload.theorangeone.net`)
- traefik.http.routers.upload.tls.certresolver=le
2020-05-08 21:27:32 +01:00
img:
2020-05-09 17:14:16 +01:00
image: theorangeone/static-server:latest
2020-05-08 21:27:32 +01:00
restart: unless-stopped
volumes:
2020-07-24 17:14:39 +01:00
- /mnt/tank/upload/img:/srv:ro
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`) || Host(`img.0rng.one`)
- traefik.http.routers.img.tls.certresolver=le
2020-05-08 21:27:32 +01:00
bg:
2020-05-09 17:14:16 +01:00
image: theorangeone/static-server:latest
2020-05-08 21:27:32 +01:00
restart: unless-stopped
volumes:
2020-07-24 17:14:39 +01:00
- /mnt/tank/upload/background:/srv:ro
2020-05-09 17:14:16 +01:00
environment:
- FANCY_INDEX=on
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`)
- traefik.http.routers.bg.tls.certresolver=le
2020-05-08 21:27:32 +01:00
dl:
2020-05-09 17:14:16 +01:00
image: theorangeone/static-server:latest
2020-05-08 21:27:32 +01:00
restart: unless-stopped
volumes:
2020-07-24 17:14:39 +01:00
- /mnt/tank/upload/download:/srv:ro
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`)
- traefik.http.routers.dl.tls.certresolver=le