Commit b5bcba27 authored by Ignacio's avatar Ignacio
Browse files

Cambia sftp por pure-ftpd

parent 2d314753
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -3,3 +3,9 @@ version: '3.5'
volumes:
  ingest-data-vol:
    name: ${INGEST_DATA_VOL_NAME:-ingest-data-vol}

  ingest-ftp-ssl-vol:
    name: ${INGEST_FTP_SSL_VOL_NAME:-ingest-ftp-ssl-vol}

  ingest-ftp-passwd-db-vol:
    name: ${INGEST_FTP_PASSWD_DB_VOL_NAME:-ingest-ftp-passwd-db-vol}
 No newline at end of file
+12 −0
Original line number Diff line number Diff line
@@ -6,3 +6,15 @@ volumes:
    driver: "cloudstor:aws"
    driver_opts:
      backing: shared

  ingest-ftp-ssl-vol:
    name: ${INGEST_FTP_SSL_VOL_NAME:-ingest-ftp-ssl-vol}
    driver: "cloudstor:aws"
    driver_opts:
      backing: shared

  ingest-ftp-passwd-db-vol:
    name: ${INGEST_FTP_PASSWD_DB_VOL_NAME:-ingest-ftp-passwd-db-vol}
    driver: "cloudstor:aws"
    driver_opts:
      backing: shared
 No newline at end of file
+13 −6
Original line number Diff line number Diff line
version: '3.5'

services:
  ingest-sftp:
    image: atmoz/sftp:alpine
    command: "${SFTP_USERS}"
  ingest-ftp:
    image: stilliard/pure-ftpd:hardened
    networks:
      - ingest-ftp-net
    ports:
      - target: 22
      - target: 21
        published: ${PUBLIC_PORT}
        protocol: tcp
        mode: ingress
      - target: 30000
        published: ${PASSIVE_PUBLIC_PORT}
        protocol: tcp
        mode: host
    volumes:
        - ingest-data-vol:/home/
    command: "${SFTP_USERS}"
      - ingest-data-vol:/data/ftp
      - ingest-ftp-ssl-vol:/etc/ssl/private
      - ingest-ftp-passwd-db-vol:/etc/pure-ftpd/passwd
    environment:
      PUBLICHOST: ${PUBLICHOST}
    deploy:
      mode: replicated
      replicas: 1