docker-compose.yml 1021 B

12345678910111213141516171819202122232425262728293031323334
  1. # A docker-compose recipe for MediaGoblin hacking.
  2. #
  3. # Tested on Trisquel 8 and Guix System. Currently runs Python 3 and works for
  4. # images, audio and video.
  5. #
  6. # To run the system:
  7. #
  8. # docker-compose up # or
  9. # docker-compose up --build # to build the images
  10. #
  11. # To get a shell or Python interpreter inside a temporary container:
  12. #
  13. # docker-compose run --rm web /bin/bash
  14. # docker-compose run --rm web /opt/mediagoblin/bin/python
  15. version: '3'
  16. services:
  17. web:
  18. build:
  19. # We need to spell this out due to having multiple Dockerfiles.
  20. #
  21. # TODO: It's possible to `docker build -` to not provide any build context
  22. # at all. Is this possible in docker-compose?
  23. context: .
  24. dockerfile: Dockerfile-debian-python3-sqlite
  25. volumes:
  26. # Permissions need to be aligned between host and container for this to work. See
  27. # Dockerfile for details.
  28. - ./mediagoblin:/opt/mediagoblin/mediagoblin
  29. - ./user_dev:/opt/mediagoblin/user_dev
  30. ports:
  31. - "6543:6543"