{"title":"","byline":"mrspartak","dir":null,"lang":null,"content":"

Fast deployment of Gotify Server with docker-compose

\n

I wanted to make a config for Nginx + gotify with three commands to deploy

\n

Installation

\n
    \n
  1. \n

    Ensure you have Docker Engine installed on your server

    \n
  2. \n
  3. \n

    Clone this repo to your server

    \n
  4. \n
\n
  git clone https://github.com/mrspartak/gotify-dc.git\n
\n
    \n
  1. Copy and edit .env file
  2. \n
\n
  cd gotify-dc\n  cp .env.example .env\n  nano .env\n
\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
    \n
  1. Run docker :)
  2. \n
\n\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
","textContent":"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\nEnsure you have Docker Engine installed on your server\n\n\nClone this repo to your server\n\n\n git clone https://github.com/mrspartak/gotify-dc.git\n\n\nCopy and edit .env file\n\n cd gotify-dc\n cp .env.example .env\n nano .env\n\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\nRun docker :)\n\n\nThat'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","length":1073,"excerpt":"Fast deployment of Gotify Server with docker-compose","siteName":null}