Extend install instructions for raven plugin.
[mediagoblin.git] / docker-compose.yml
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 # photos and video. Audio raises an exception "NameError: name 'audiolab' is not
5 # defined".
6 #
7 # To run the system:
8 #
9 # docker-compose up # or
10 # docker-compose up --build # to build the images
11 #
12 # To get a shell or Python interpreter inside a temporary container:
13 #
14 # docker-compose run --rm web /bin/bash
15 # docker-compose run --rm web /opt/mediagoblin/bin/python
16
17 version: '3'
18
19 services:
20 web:
21 build:
22 # We need to spell this out due to having multiple Dockerfiles.
23 #
24 # TODO: It's possible to `docker build -` to not provide any build context
25 # at all. Is this possible in docker-compose?
26 context: .
27 dockerfile: Dockerfile-python3
28 volumes:
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
33 ports:
34 - "6543:6543"