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

Getting production running #29

Open
wouterverduin opened this issue Jul 22, 2023 · 3 comments
Open

Getting production running #29

wouterverduin opened this issue Jul 22, 2023 · 3 comments

Comments

@wouterverduin
Copy link

Hi!

I love the idea of a selfhosted workout/fitness manager. Since there arent a whole lot and wger seems to fit my needs i wanted to spin it up.

Tried the demo:
docker run -ti --name wger.demo --publish 8000:80 wger/demo

Which runs; Shows the images and gets me started.
However, when i want to move to production. using this docker command:

docker run -d --name wger --publish 8000:8000 wger/server

It spins up however doenst seem to load the images and gives a really distorted site? Is there a fix to that or can i just run the demo version for myself?

Also attempted to use the docker-compose although that is just throwing errors around unfortunately...

Help is well appreciated!

@rolandgeider
Copy link
Member

you are right, there is something wrong with the exercise images in demo.

What errors does the docker compose produce? I could spin up the current version without problems. The reason you don't see any css or js files when running the image like that is that during produciton django doesn't serve any static files, you need another process for that (that's what the nginx service does)

@wouterverduin
Copy link
Author

Thanks for the reply!

The thing is the images work in the demo not in the wger/server image...

But the best option would be a docker-compose of course.

What i am running into is this:
ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for networks: 'default' Unsupported config option for services: 'nginx' Unsupported config option for volumes: 'static' root@legit:/home/wouter/docker/wger# docker-compose up -d ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services: 'celery_worker' Unsupported config option for networks: 'default' Unsupported config option for volumes: 'media' root@legit:/home/wouter/docker/wger# docker-compose up -d ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services: 'cache' Unsupported config option for volumes: 'celery-beat' Unsupported config option for networks: 'default' root@legit:/home/wouter/docker/wger# docker-compose up -d ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services: 'celery_beat' Unsupported config option for networks: 'default' Unsupported config option for volumes: 'postgres-data'

And ofcourse i have the necessary files in a config folder next to it...

Any tips on getting this up and run sustainably is much appreciated!

@rolandgeider
Copy link
Member

strange because when I tried it right now the demo had problems with the (exercise) images 😆

From those error messages I would guess you are using an older version of docker compose? I think anything from 2.0 onwards should work

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

2 participants