forked from github.com/pypiserver
Update compose to version 3.3
Thanks @renich!
This commit is contained in:
parent
5a1fd5a6ca
commit
6c3290b32f
@ -3,16 +3,19 @@
|
|||||||
# pypiserver docker-compose example
|
# pypiserver docker-compose example
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
version: "3"
|
version: "3.3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
pypiserver:
|
pypiserver:
|
||||||
image: pypiserver:latest
|
image: pypiserver/pypiserver:latest
|
||||||
volumes:
|
volumes:
|
||||||
# Mount local /tmp/pypiserver to /data in container
|
- type: bind
|
||||||
- /tmp/pypiserver:/data
|
source: ./data
|
||||||
# Use an .htaccess file to control access, serve packages from
|
target: /data
|
||||||
# /tmp/pypiserver/packages (/data/packages in the container)
|
# Use an .htaccess file to control access, serve packages from
|
||||||
command: -P /data/.htaccess -a update,download,list /data/packages
|
# ./data (which will be /data in the container)
|
||||||
ports:
|
command: -P /data/.htaccess -a update,download,list /data/packages
|
||||||
- "80:8080"
|
ports:
|
||||||
|
- "80:8080"
|
||||||
|
volumes:
|
||||||
|
data:
|
||||||
|
Loading…
Reference in New Issue
Block a user