diff --git a/docker-compose_example/README.MD b/docker-compose_example/README.MD new file mode 100644 index 0000000..3f08268 --- /dev/null +++ b/docker-compose_example/README.MD @@ -0,0 +1,13 @@ +# How to use docker-compose + +### WHY +when you have multiple docker's that are dependent of each other, and you are in need of a simpler way of starting and stopping them :) + +### INSTALL +https://docs.docker.com/compose/install/#install-compose + +### USAGE +```bash +cp example.env .env +docker-compose up -d +``` diff --git a/docker-compose_example/docker-compose.yml b/docker-compose_example/docker-compose.yml new file mode 100644 index 0000000..6184c57 --- /dev/null +++ b/docker-compose_example/docker-compose.yml @@ -0,0 +1,37 @@ +version: '3' +services: + rflood: + image: binhex/arch-rtorrentvpn + container_name: rflood + hostname: rflood + ports: + - "9080:9080" + - "9443:9443" + - "8118:8118" + - "3000:3000" + - "9091:9091" + - "8888:8888" + cap_add: + - NET_ADMIN + devices: + - /dev/net/tun + environment: + - VPN_ENABLED + - VPN_USER + - VPN_PASS + - VPN_PROV + - STRICT_PORT_FORWARD + - ENABLE_PRIVOXY + - ENABLE_FLOOD + - ENABLE_AUTODL_IRSSI + - LAN_NETWORK + - NAME_SERVERS + - DEBUG + - PHP_TZ + - PGID + - PUID + volumes: + - ${CONFIG}/rflood:/config + - ${DOWNLOAD}/rflood:/data + - /etc/localtime:/etc/localtime:ro + restart: always diff --git a/docker-compose_example/example.env b/docker-compose_example/example.env new file mode 100644 index 0000000..9eb21b5 --- /dev/null +++ b/docker-compose_example/example.env @@ -0,0 +1,19 @@ +CONFIG=/where/you/keep/configs +DOWNLOAD=/where/you/keep/downloads + +TZ=Europe/Oslo +PGID=1000 +PUID=1000 + +PHP_TZ=UTC +DEBUG=false +NAME_SERVERS=1.1.1.1,8.8.8.8 +LAN_NETWORK=192.168.1.0/24 +ENABLE_AUTODL_IRSSI=no +ENABLE_FLOOD=yes +ENABLE_PRIVOXY=yes +STRICT_PORT_FORWARD=yes +VPN_ENABLED=yes +VPN_PROV=custom +VPN_USER=tiger +VPN_PASS=rawr