diff --git a/README.md b/README.md index 8692f7a..4c4cfe4 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,32 @@ zoffline can be installed on the same machine as Zwift or another local machine. +
Using docker-compose + +* Install docker-compose +* Either use the docker-compose.yml file in this repo which will build from the Dockerfile, or use this example compose file: + ``` + services: + zoffline: + image: zoffline/zoffline:latest + container_name: zoffline + network_mode: host + environment: + - TZ=Europe/London + volumes: + - ./storage/:/usr/src/app/zwift-offline/storage + ports: + - 80:80 + - 443:443 + - 3022:3022/udp + - 3023:3023 + restart: unless-stopped + ``` +* If you are not running zoffline on the same PC that Zwift is running: create a ``server-ip.txt`` file in the ``storage`` directory containing the IP address of the PC running zoffline. +* Start zoffline with: + ``docker-compose up -d `` +
+ ### Step 2: Configure Zwift client to use zoffline
Windows Instructions diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..766332c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,19 @@ +version: "3.6" +services: + zoffline: + image: zoffline/zoffline:latest + build: + context: . + dockerfile: Dockerfile + container_name: zoffline + network_mode: host + environment: + - TZ=Europe/London + volumes: + - ./storage/:/usr/src/app/zwift-offline/storage + ports: + - 80:80 + - 443:443 + - 3022:3022/udp + - 3023:3023 + restart: unless-stopped