Fast deployment of Gotify Server with docker-compose
\nI wanted to make a config for Nginx + gotify with three commands to deploy
\nInstallation
\n- \n
- \n
Ensure you have Docker Engine installed on your server
\n \n - \n
Clone this repo to your server
\n \n
git clone https://github.com/mrspartak/gotify-dc.git\n- \n
- Copy and edit .env file \n
cd gotify-dc\n cp .env.example .env\n nano .env\n#write your domain name here pointed via DNS to your server IP address. You can use Cloudflare to have SSL encrypted connection\n#If you will use Cloudflare, ensure that you have Network>Websockets enabled\nAPP_DOMAIN=push.example.com\n\n#Local ports that will be exposed by Gotify\nAPP_PORT=2080\nAPP_PORT_SSL=2083\n\n#Folder to store sqlite DB of gotify\nAPP_DB_PATH=/home/sites/gotify-dc/data\n\n#Your login and password\nAPP_USER_LOGIN=user\nAPP_USER_PASSWORD=password\n- \n
- Run docker :) \n
That's it. If you need SSL encryption, you can use Cloudflare or change Nginx config to listen and redirect to 443 port and of course, make certificates. If you need MySQL/Postgres to work, you need to modify docker-compose.yaml
\n