Add Python 3 docker-compose recipe for MediaGoblin hacking.
[mediagoblin.git] / docker-compose.yml
CommitLineData
8096beab
BS
1# A docker-compose recipe for MediaGoblin hacking.
2#
3# Tested on Trisquel 8. Currently runs Python 3 and works for photos and video.
4# Audio raises an exception "NameError: name 'audiolab' is not defined".
5
6# docker-compose up --build
7# docker-compose run --rm web bin/python
8# docker-compose start [service]
9# docker-compose stop [service]
10# docker-compose down
11
12version: '2'
13
14services:
15 web:
16 build:
17 context: .
18 dockerfile: Dockerfile-python3
19 # Is user required here, or does it just pick up from the last USER in Dockerfile?
20 user: www-data
21 # Consider running dbupdate here (at runtime), rather than in Dockerfile.
22 command: ./lazyserver.sh --server-name=broadcast
23 volumes:
24 # Mount your local copy of the source for hecking on MediaGoblin.
25 - ./mediagoblin:/opt/mediagoblin/mediagoblin
26
27 # Mount your local media/secrets. Requires some initial setup:
28 #
29 # $ mkdir user_dev/media user_dev/crypto
30 # $ chmod 777 user_dev/media user_dev_crypto
31 - ./user_dev:/opt/mediagoblin/user_dev
32 ports:
33 - "6543:6543"