1 # A docker-compose recipe for MediaGoblin hacking.
3 # Tested on Trisquel 8 and Guix System. Currently runs Python 3 and works for
4 # photos and video. Audio raises an exception "NameError: name 'audiolab' is not
9 # docker-compose up # or
10 # docker-compose up --build # to build the images
12 # To get a shell or Python interpreter inside a temporary container:
14 # docker-compose run --rm web /bin/bash
15 # docker-compose run --rm web /opt/mediagoblin/bin/python
22 # We need to spell this out due to having multiple Dockerfiles.
24 # TODO: It's possible to `docker build -` to not provide any build context
25 # at all. Is this possible in docker-compose?
27 dockerfile: Dockerfile-python3
29 # Permissions need to be aligned between host and container for this to work. See
30 # Dockerfile for details.
31 - ./mediagoblin:/opt/mediagoblin/mediagoblin
32 - ./user_dev:/opt/mediagoblin/user_dev