Skip to content

Instantly share code, notes, and snippets.

@yanqd0
Last active October 19, 2018 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanqd0/9936bb11e3e77ee915a909f61db44e20 to your computer and use it in GitHub Desktop.
Save yanqd0/9936bb11e3e77ee915a909f61db44e20 to your computer and use it in GitHub Desktop.
The docker-compose.yaml about a http server for files with Python
# 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