To run this on DigitalOcean.
- Create a Droplet with Docker:
https://www.digitalocean.com/products/one-click-apps/docker/
- Place these files somewhere on the disk and run
docker-compose up -d
- See logs with
docker-compose logs -f
- Proxy to the service via nginx by creating /etc/nginx/sites-enabled/countly
server {
listen 80;
server_name countly.your.domain;
location / {
proxy_pass http://localhost:32768;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
- Restart nginx
nginx -s reload
- Setup https using letsencrypt certbot