From 58531766d87d4048df27bebe3fdbf6d885f2c333 Mon Sep 17 00:00:00 2001 From: petapaka123 <38642711+petapaka123@users.noreply.github.com> Date: Wed, 6 Jan 2021 17:59:12 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 1927748..f200b96 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,33 @@ To change the external port the server uses, change the *first* instance of the docker run -d -p 8123:9736 ottomated/crewlink-server:latest ``` +## Docker-Compose + +Run the server with [Docker-Compose](https://docs.docker.com/compose/install/) by creating following commands: +`mkdir /opt/crewlink` +`cd /opt/crewlink` +`nano docker-compose.yml` +Paste and edit the following text + +``` +version: '3.3' +services: + crewlink-server: + environment: + - ADDRESS=crewlink.example.com # This needs to be adjusted to your FQDN + - PORT=9736 # Change this to whatever port of the docker container should be used. Make sure to adjust the letter port below as well + - NAME=Crewlink Server # Not necessary; Change to whatever you like +# - HTTPS=true # This needs to be uncommented in case you want to use SSL +# - SSLPATH=/path/to/ssl/cert/and/key # This needs to be uncommented and adjusted in case you want to use SSL + ports: + - '9736:9736' # First port needs defines the port used on your host; Latter must be the same as the port defined above in environment + image: 'ottomated/crewlink-server:latest' +``` + +press `ctrl + o` to overwrite and hit `enter` +press `ctrl + x` to exit nano +Run the file by typing `docker-compose up -d` + ### Building the Docker Image To build your own Docker image, do the following: From 3b1b7140bc2b29c5a07c0b74f04def782bf756fb Mon Sep 17 00:00:00 2001 From: petapaka123 <38642711+petapaka123@users.noreply.github.com> Date: Wed, 6 Jan 2021 18:06:06 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f200b96..b403346 100644 --- a/README.md +++ b/README.md @@ -73,11 +73,19 @@ docker run -d -p 8123:9736 ottomated/crewlink-server:latest ## Docker-Compose Run the server with [Docker-Compose](https://docs.docker.com/compose/install/) by creating following commands: -`mkdir /opt/crewlink` -`cd /opt/crewlink` -`nano docker-compose.yml` -Paste and edit the following text +1. Create a folder +```sh +mkdir /opt/crewlink +cd /opt/crewlink +``` + +2. Create docker-compose.yml (In my example with nano) +```sh +nano docker-compose.yml +``` + +3. Paste and edit the following text ``` version: '3.3' services: @@ -93,9 +101,11 @@ services: image: 'ottomated/crewlink-server:latest' ``` -press `ctrl + o` to overwrite and hit `enter` -press `ctrl + x` to exit nano -Run the file by typing `docker-compose up -d` +4. Press `ctrl + o` to overwrite and hit `enter` + +5. press `ctrl + x` to exit nano + +6. Run CrewLink by typing `docker-compose up -d` ### Building the Docker Image