forked from github.com/pypiserver
Merge pull request #219 from pypiserver/compose-update
Update compose to version 3.3
This commit is contained in:
commit
bc34b7ee4b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user