Skip to content

Latest commit

 

History

History
78 lines (57 loc) · 2.34 KB

README.md

File metadata and controls

78 lines (57 loc) · 2.34 KB

docker-synclounge

🐳 Dockerfile for SyncLounge

Docker Pulls

The following tags are available:

  • latest / alpine: webapp and server based on alpine
  • server: only server based on alpine
docker run \
  --name=SyncLounge \
	-p 8088:8088 \
	-p 8089:8089 \
  -e DOMAIN=example.com \
  starbix/synclounge
  • nginx: latest + nginx reverse proxy
docker run \
  --name=SyncLounge_nginx \
	-p 80:80 \
  -e DOMAIN=example.com \
  starbix/synclounge:nginx

To run both the SyncLounge webapp and the SyncLounge server through a web server like nginx you will need to make sure you proxy websockets. Example nginx.conf:

server {
    listen 80;
	server_name example.com;
	root /location/of/synclounge/;
	location /slweb {
		proxy_pass http://localhost:8088/slweb;
	    proxy_http_version 1.1;
	    proxy_set_header Upgrade $http_upgrade;
	    proxy_set_header Connection "upgrade";
	}     	
	location /slserver {
		proxy_pass http://localhost:8089/slserver;
	    proxy_http_version 1.1;
	    proxy_set_header Upgrade $http_upgrade;
	    proxy_set_header Connection "upgrade";
	}     	
	location / {
	    proxy_http_version 1.1;
	    proxy_set_header Upgrade $http_upgrade;
	    proxy_set_header Connection "upgrade";
		proxy_pass http://localhost:8088/slweb;
	}
}

Maintainers

@Starbix

Contribute

PRs accepted.

License

MIT © 2019 Cédric Laubacher