diff --git a/noCI-uploads/README.md b/noCI-uploads/README.md new file mode 100644 index 0000000000000000000000000000000000000000..63d1e3c4aa9a083dcdfdfee3f3cd357e9f5781cc --- /dev/null +++ b/noCI-uploads/README.md @@ -0,0 +1,3 @@ +https://wiki.picasoft.net/doku.php?id=technique:adminsys:sftp + +https://hub.docker.com/r/atmoz/sftp diff --git a/noCI-uploads/docker-compose.yml b/noCI-uploads/docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..af61c9f122164d317d4dff5b67f497c8cc181fe4 --- /dev/null +++ b/noCI-uploads/docker-compose.yml @@ -0,0 +1,32 @@ +version: "3.7" + +volumes: + uploads: + external: true + +networks: + sftp: # Why a separate network ? #ToDo: ask Quentin + +services: + sftp: + image: atmoz/sftp:alpine + container_name: sftp + volumes: + - uploads:/home/pica/uploads + - ./secrets/sftp.secrets:/etc/sftp/users.conf:ro + ports: + - "2222:22" + networks: + - sftp + restart: unless-stopped + + uploads: + container_name: uploads + image: registry.picasoft.net/pica-nginx:stretch-20200323 + volumes: + - uploads:/var/www/html + labels: + - "traefik.frontend.rule=Host:uploads.picasoft.net" + - "traefik.port=80" + - "traefik.enable=true" + restart: unless-stopped diff --git a/noCI-uploads/secrets/sftp.secrets.example b/noCI-uploads/secrets/sftp.secrets.example new file mode 100644 index 0000000000000000000000000000000000000000..fe47ac76616a16a9145b3336c314bcdd36010895 --- /dev/null +++ b/noCI-uploads/secrets/sftp.secrets.example @@ -0,0 +1 @@ +pica:<mot_de_passe>:33:999:upload