-
Hi there, how can I run cup with docker compose? Thanks :-) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hello @cryptedx ! Thanks for asking this question! Here's a very basic compose you can use: services:
cup:
image: ghcr.io/sergi0g/cup:latest # you can use another tag if you like
restart: unless-stopped
command: serve
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8000:8000" If you want to use a different port, or use the |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your help guys. Unfortunately it won't start up completely. I can't access the WebUI and log does output only:
I am using Portainer with Stacks. Usually I get everything running what I want but cup is doing something differnt. This is the yaml which I am using: services:
cup:
image: ghcr.io/sergi0g/cup:latest
restart: unless-stopped
command: serve
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "9000:9000" When I run it with the docker command from the docs it runs fine. Have you tested it by yourself if it it really also working for you with compose? Thanks |
Beta Was this translation helpful? Give feedback.
It's mentioned in the docs. If you want to run on port 9000 you need to pass
-p 9000
. It's just how you inform Cup that you want it to run on port 9000. It's mostly intended for users who don't run Cup with Docker. For Docker, you can avoid passing-p 9000
entirely by exposing the port as9000:8000
. Portainer should make that easy.