Docker compose not exposing ports
#6
by
mnemic
- opened
I couldn't get the included docker-compose.yml to work out of the box.
I needed to edit it to expose the ports in the config for it to forward it to my Windows machine (running Docker Desktop):
version: '3.8'
services:
zonos:
build:
context: .
dockerfile: Dockerfile
container_name: zonos_container
runtime: nvidia
stdin_open: true
tty: true
command: ["python3", "gradio_interface.py"]
environment:
- NVIDIA_VISIBLE_DEVICES=0
- GRADIO_SHARE=False
ports:
- "7860:7860" # Expose port 7860 to the host
In case anyone runs into the same issue.