Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker deployment #237

Closed
mat-l opened this issue Jun 1, 2021 · 7 comments
Closed

Docker deployment #237

mat-l opened this issue Jun 1, 2021 · 7 comments

Comments

@mat-l
Copy link

mat-l commented Jun 1, 2021

Thank you for the great work 🙏🏽

Instead of installing all dependencies manually, I would prefer a Docker based set up for Rooms 2.0 to host an instance by myself. Are you planning to publish a container?

@cryptix
Copy link
Member

cryptix commented Jun 1, 2021

@HendrikPetertje is already working on one. I hope he will share it. :)

@cryptix cryptix mentioned this issue Jun 1, 2021
@cryptix
Copy link
Member

cryptix commented Jun 1, 2021

Ok, I couldn't help but scratch the itch.

I added a pretty decent Dockerfile (it uses two different containers for building and running the server such that the toolchain doesn't end up in the final image) in #239 but I'm a bit blank on best practice with adding nginx or similar as a reverse proxy for TLS (see the deployment document in this repo). I suppose one would use docker-compose for that?

You can try it with these steps:

git clone https://github.com/ssb-ngi-pointer/go-ssb-room
cd go-ssb-room
git checkout try-docker
docker build -t ssb-ngi-pointer/go-ssb-room .
docker run ssb-ngi-pointer/go-ssb-room /server -https-domain foo.com

@HendrikPetertje
Copy link
Contributor

HendrikPetertje commented Jun 1, 2021

Ok, I couldn't help but scratch the itch.

Understandable ;)

I put up a pull request with a docker + docker-compose construction. feel free to pick stuff from it for your own config if you think it helps (you probably don't want all of it which is fine ;) )

#240 240

@mat-l
Copy link
Author

mat-l commented Jun 2, 2021

Nice, will check it the next days 😊
Thanks for fast feedback.

@ahdinosaur
Copy link

by the way, @3wordchant has a Dockerfile for their coopcloud.tech deploy: https://git.autonomic.zone/3wordchant/docker-go-ssb-room/, looks really good. also has a corresponding compose.yml: https://git.autonomic.zone/3wordchant/docker-go-ssb-room

@decentral1se
Copy link
Member

Following #237 (comment), https://git.coopcloud.tech/coop-cloud/go-ssb-room is now running https://butt.autonomic.zone 🎉 We'll be maintaining that as we go. If anyone is up for co-maintaining / testing, please do let us know.

@decentral1se
Copy link
Member

Several options for this already, think this can be closed. Think #309 can improve the situation but for Another Day ™️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants