Commit | Line | Data |
---|---|---|
8096beab BS |
1 | # A docker-compose recipe for MediaGoblin hacking. |
2 | # | |
86891869 | 3 | # Tested on Trisquel 8 and Guix System. Currently runs Python 3 and works for |
912e5d2b | 4 | # images, audio and video. |
86891869 BS |
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 | |
8096beab | 15 | |
86891869 | 16 | version: '3' |
8096beab BS |
17 | |
18 | services: | |
19 | web: | |
20 | build: | |
86891869 BS |
21 | # We need to spell this out due to having multiple Dockerfiles. |
22 | # | |
23 | # TODO: It's possible to `docker build -` to not provide any build context | |
24 | # at all. Is this possible in docker-compose? | |
8096beab | 25 | context: . |
85314733 | 26 | dockerfile: Dockerfile-debian-python3-sqlite |
8096beab | 27 | volumes: |
86891869 BS |
28 | # Permissions need to be aligned between host and container for this to work. See |
29 | # Dockerfile for details. | |
8096beab | 30 | - ./mediagoblin:/opt/mediagoblin/mediagoblin |
8096beab BS |
31 | - ./user_dev:/opt/mediagoblin/user_dev |
32 | ports: | |
33 | - "6543:6543" |