v3.0.0/docs/docker.md

24 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2021-02-05 16:25:43 +01:00
### Using Docker
2021-06-07 10:40:28 +02:00
If you want to avoid all the hassle of installing the dependencies, configuring nginx and so on you can try our docker image which makes things a bit simpler.
2021-02-20 00:42:23 +01:00
2021-02-20 17:10:58 +01:00
First make sure you have docker and docker composer installed, so please follow the install instructions for your OS/Distro:
- https://docs.docker.com/engine/install/debian/
- https://docs.docker.com/compose/install/
2021-02-20 00:42:23 +01:00
After that:
2021-06-07 10:40:28 +02:00
- Copy the config file called `docker-compose.config.example.yml` and name it `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` and name it `chibisafe.moe.conf` for either HTTP or HTTPS
- - If using HTTPS make sure to put your certificates into the `ssl` folder and name them accordingly:
2021-02-20 00:42:23 +01:00
- - - `chibisafe.moe.crt` for the certificate
- - - `chibisafe.moe.key` for the certificate key
Once you are done run the following commands:
2021-02-05 16:25:43 +01:00
- `cd docker`
2021-06-07 10:40:28 +02:00
- `./chibisafe prod pull`
- `./chibisafe prod build`
- `./chibisafe prod up -d`
2021-02-05 16:25:43 +01:00
Congrats, your chibisafe instance is now running.