Skip to content

Instantly share code, notes, and snippets.

View krystofbe's full-sized avatar

Krystof Beuermann krystofbe

View GitHub Profile
upstream my-app.my-domain.com {
server localhost:2369; # change the port to the port of your web app running on localhost
}
server {
listen 80;
server_name my-app.my-domain.com;
location / {
@krystofbe
krystofbe / docker-compose-app.service
Created July 24, 2019 08:30
/etc/systemd/system/docker-compose-app.service
[Service]
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/home/ubuntu/git/matomo-blackbox
ExecStart=/usr/bin/docker-compose up -d
ExecStop=/usr/bin/docker-compose down
TimeoutStartSec=0
[Install]
WantedBy=multi-user.target