Last active
October 19, 2018 04:13
-
-
Save yanqd0/9936bb11e3e77ee915a909f61db44e20 to your computer and use it in GitHub Desktop.
The docker-compose.yaml about a http server for files with Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set shiftwidth=2 tabstop=2 softtabstop=-1 expandtab: | |
version: '3' | |
services: | |
files: | |
image: python:alpine | |
restart: unless-stopped | |
working_dir: /srv/files | |
volumes: | |
- .:/srv/files | |
read_only: true | |
ports: | |
- 18000:8000 | |
command: python -m http.server --cgi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment