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:
- ./data:/data
command: server /data --quiet
environment:
- MINIO_ACCESS_KEY={{ minio_access_key }}
- MINIO_SECRET_KEY={{ minio_secret_key }}
labels:
- "traefik.enable=true"
- "traefik.http.routers.upload.rule=Host(`upload.theorangeone.net`)"
- "traefik.http.routers.upload.tls.certresolver=le"
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-05-09 17:14:16 +01:00
- ./data/img:/srv:ro
2020-05-08 21:27:32 +01:00
labels:
- "traefik.enable=true"
2020-05-08 21:45:27 +01:00
- "traefik.http.routers.img.rule=Host(`img.theorangeone.net`) || Host(`img.0rng.one`)"
2020-05-08 21:27:32 +01:00
- "traefik.http.routers.img.tls.certresolver=le"
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-05-09 17:14:16 +01:00
- ./data/background:/srv:ro
environment:
- FANCY_INDEX=on
2020-05-08 21:27:32 +01:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.bg.rule=Host(`bg.theorangeone.net`)"
- "traefik.http.routers.bg.tls.certresolver=le"
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-05-09 17:14:16 +01:00
- ./data/download:/srv:ro
2020-05-08 21:27:32 +01:00
labels:
- "traefik.enable=true"
2020-05-08 21:45:27 +01:00
- "traefik.http.routers.dl.rule=Host(`dl.theorangeone.net`) || Host(`dl.0rng.one`)"
2020-05-08 21:27:32 +01:00
- "traefik.http.routers.dl.tls.certresolver=le"