Merge pull request #219 from pypiserver/compose-update

Update compose to version 3.3
This commit is contained in:
Matthew Planchard 2018-08-09 21:04:04 -05:00 committed by GitHub
commit bc34b7ee4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,16 +3,19 @@
# pypiserver docker-compose example
########################################################################
version: "3"
version: "3.3"
services:
pypiserver:
image: pypiserver:latest
volumes:
# Mount local /tmp/pypiserver to /data in container
- /tmp/pypiserver:/data
# Use an .htaccess file to control access, serve packages from
# /tmp/pypiserver/packages (/data/packages in the container)
command: -P /data/.htaccess -a update,download,list /data/packages
ports:
- "80:8080"
pypiserver:
image: pypiserver/pypiserver:latest
volumes:
- type: bind
source: ./data
target: /data
# Use an .htaccess file to control access, serve packages from
# ./data (which will be /data in the container)
command: -P /data/.htaccess -a update,download,list /data/packages
ports:
- "80:8080"
volumes:
data: