Comments (7)
Three things:
first of all, did you include the base file? The add-on files do not stand alone. They are meant to add to and build upon the base file. The reverse-proxy service is fully defined in docker-compose.base.yaml. The subsequent entries for it in the add-ons files add additional configuration to it. As README.md says, you should be starting your stack by first including the base file and adding the add ons after e.g. docker-compose -f docker-compose.base.yaml -f add-ons/docker-compose.Grocy.yaml up -d
if you just wanted the base + Grocy. You can, of course, remove the reverse-proxy and mail-relay from the grocy yaml file and change
expose:
"80
to
ports:
"80:80"
This will make grocy available at http://localhost and it would be the only service that could be run/accessed on port 80 (the default http port) because there won't be a proxy routing requests based on any criteria, it would just be a straight ocnnection
Second, if you're only running this on localhost, it cannot be accessed via HTTPS. The reverse-proxy may complain that it isn't able to obtain ssl certs for your hostnames because they aren't publically accessible. It also makes the dynamic-dns service in the base file pointless, since you aren't accessing it from a publicly accessible address
Finally, if Grocy is all you're looking to run and you only want to run it locally, you can just use Grocy desktop directly if you have Windows or using Wine if you have MacOS or Linux
from self-hosted-docker-server-templates.
Hi!
Thanks for telling and my bad for not reading the README.md that well.
I took out the reverse proxy and the mail-relay. Thought it seemed to work even with
expose:
"80
Thanks!! I already have own working traefik enviroment.
from self-hosted-docker-server-templates.
oh gotcha! yeah if you have you already have traefik, then leaving the expose clause is appropriate, since your existing traefik is likely already on port 80 and therefore you can't forward that port to anything else. You didn't include that detail about already having a working Traefik container with docker provider configured. My templates were written assuming you had absolutely nothing and were just getting started with something.
from self-hosted-docker-server-templates.
Hi!
Yeah you are right. Sorry I didnt mention the important part of traefik.
Your templates have still helped a lot. Because configuring them feels sometimes quite hard.
Althought I guess the hardest one's are those that dont have web server with them. I still haven no clue how to stiff nginx on the same compose to show certain containers.
Thank you for the help. Finally having a working grocy.
from self-hosted-docker-server-templates.
@thepenguinthatwants any particular server you're thinking of? I may be able to assist
from self-hosted-docker-server-templates.
I was thinking of how to use nginx image to get them work with docker images that doesnt have web servers. For example it would be nice to learn how to use it for like privatebin.
There is already a privatebin with nginx image but the image is in a way that I can't use volumes to make the files permanent. So it would be nice to learn how to map the images with nginx.
from self-hosted-docker-server-templates.
you can make any directory inside the container map to a volume.
from self-hosted-docker-server-templates.
Related Issues (6)
- Error in TOML HOT 2
- More about traefik? HOT 7
- Similar projects HOT 1
- Traefik Setup HOT 4
- docker-compose ... config fails HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from self-hosted-docker-server-templates.