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

Missing volumes declaration in docker compose file #113

Open
Josh-Woodcock opened this issue Jan 10, 2025 · 0 comments
Open

Missing volumes declaration in docker compose file #113

Josh-Woodcock opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Josh-Woodcock
Copy link

Josh-Woodcock commented Jan 10, 2025

the volumes are not specified at in the docker-compose.yml snippet. It tripped me up as I was copying and pasting the changes rather than doing it manually.

See - https://uomresearchit.github.io/docker-introduction/docker-compose.html#building-containers-in-docker-compose

it should be -


services:
  spuc:
  # image: spuacv/spuc:latest
    build:                        # Instead of using the 'image' key, we use the 'build' key
      context: .                  # Sets the build context (the directory in which the Dockerfile is located)
      dockerfile: Dockerfile      # Sets the name of the Dockerfile
    container_name: spuc_container
    ports:
      - 8321:8321
    volumes:
      - ./print.config:/spuc/config/print.config
      - spuc-volume:/spuc/output
      - ./stats.py:/spuc/plugins/stats.py
    environment:
      - EXPORT=true
    command: ["--units", "iulu"]

volumes:
  spuc-volume:

@Josh-Woodcock Josh-Woodcock added the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant