compose/aria2/docker-compose.yml

61 lines
1.6 KiB
YAML

x-logging: &x-logging
driver: "json-file"
options:
max-size: "5m"
services:
Aria2-Pro:
container_name: aria2
image: p3terx/aria2-pro
ports:
- "6888:6888/tcp"
- "6888:6888/udp"
networks:
- proxy
env_file:
- docker.env
volumes:
- ./config:/config
- ./downloads:/downloads
restart: unless-stopped
logging: *x-logging
AriaNg:
container_name: ariang
image: p3terx/ariang
networks:
- proxy
restart: unless-stopped
logging: *x-logging
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.ariang.rule=Host(`aria2.example.com`)"
- "traefik.http.routers.ariang.entrypoints=websecure"
- "traefik.http.routers.ariang.service=ariang"
- "traefik.http.services.ariang.loadbalancer.server.port=80"
aria2-filebrowser:
image: filebrowser/filebrowser:v2
container_name: aria2-filebrowser
restart: always
volumes:
- ./filebrowser:/app
- ./downloads:/srv
networks:
- proxy
logging: *x-logging
working_dir: /app
command: [ "-c", "/app/config.json" ]
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.aria2-filebrowser.rule=Host(`file.example.com`)"
- "traefik.http.routers.aria2-filebrowser.entrypoints=websecure"
- "traefik.http.routers.aria2-filebrowser.service=aria2-filebrowser"
- "traefik.http.services.aria2-filebrowser.loadbalancer.server.port=80"
networks:
proxy:
external: true