From 6c3290b32fb1e2030ad8422faca19e162db29eea Mon Sep 17 00:00:00 2001 From: Matthew Planchard Date: Thu, 9 Aug 2018 20:39:49 -0500 Subject: [PATCH] Update compose to version 3.3 Thanks @renich! --- docker-compose.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index bd1b48b..bea2b8d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: