chore: update docker guide

This commit is contained in:
iCrawl 2021-02-20 00:42:23 +01:00
parent bbce774d6c
commit f7bcd6718d
No known key found for this signature in database
GPG Key ID: 1AB888B16355FBB2
5 changed files with 11 additions and 11 deletions

View File

@ -1,10 +1,6 @@
version: "3.7"
services:
nginx:
volumes:
- nginx-data:/etc/nginx
chibisafe:
volumes:
- chibisafe-data:/usr/chibisafe/uploads

View File

@ -1,10 +1,6 @@
version: "3.7"
services:
nginx:
volumes:
- ./nginx-data:/etc/nginx
chibisafe:
volumes:
- ./chibisafe-data:/usr/chibisafe/uploads

View File

@ -3,3 +3,4 @@ FROM nginx
COPY nginxconfig.io /etc/nginx/nginxconfig.io
COPY nginx.conf /etc/nginx/nginx.conf
COPY chibisafe.moe.conf /etc/nginx/conf.d/chibisafe.moe.conf
COPY ssl /etc/nginx/ssl

View File

View File

@ -1,9 +1,16 @@
### Using Docker
If you want to avoid all the hassle of installing the dependencies, configuring nginx and etc you can simply use our docker image which makes things way faster.
First make sure you have docker and docker composer installed, on Linux this would be `sudo apt install docker-ce`.
After that edit the config file called `docker-compose.config.example.yml` with the values you want. Those that are left commented will use the default values.
Once you are done editing that file remove the `example` from the name so it ends up being `docker-compose.config.yml` and run the following commands:
First make sure you have docker and docker composer installed, on Debian/Ubuntu this would be `sudo apt install docker-ce`.
After that:
- Copy the config file called `docker-compose.config.example.yml` to `docker-compose.config.yml` with the values you want. Those that are left commented will use the default values.
- Copy either `chibisafe.moe.http.example.conf` or `chibisafe.moe.https.example.conf` to `chibisafe.moe.conf` for either HTTP or HTTPS
- - If using HTTPS make sure to put your certs into the `ssl` folder and name them accordingly:
- - - `chibisafe.moe.crt` for the certificate
- - - `chibisafe.moe.key` for the certificate key
Once you are done run the following commands:
- `cd docker`
- `./chibisafe prod pull`