Fix broken Dockerfile reference.
[mediagoblin.git] / docker-compose.yml
CommitLineData
8096beab
BS
1# A docker-compose recipe for MediaGoblin hacking.
2#
86891869
BS
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
8096beab 16
86891869 17version: '3'
8096beab
BS
18
19services:
20 web:
21 build:
86891869
BS
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?
8096beab 26 context: .
85314733 27 dockerfile: Dockerfile-debian-python3-sqlite
8096beab 28 volumes:
86891869
BS
29 # Permissions need to be aligned between host and container for this to work. See
30 # Dockerfile for details.
8096beab 31 - ./mediagoblin:/opt/mediagoblin/mediagoblin
8096beab
BS
32 - ./user_dev:/opt/mediagoblin/user_dev
33 ports:
34 - "6543:6543"