version: '3'
services:
aria2:
container_name: aria2
restart: always
logging:
driver: "json-file"
options:
max-size: "5m"
deploy:
resources:
limits:
memory: 100M
cpus: '0.2'
environment:
- PUID=$UID
- PGID=$GID
- RPC_SECRET=<token>
- RPC_PORT=6800
- LISTEN_PORT=6888
- UMASK_SET=022
volumes:
- ./aria2-config:/config
- /downloads:/downloads
image: lsposed/aria2
networks:
- mynetworks
ariang:
container_name: ariang
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
ports:
- "6880:6880"
image: lsposed/ariang
depends_on:
- aria2
networks:
- mynetworks
networks:
mynetworks:
external: true