blob: 5a1bdacd45c17fd72b79f04624278d6abc350244 [file] [log] [blame]
TamasBakaid38feb62019-02-28 09:06:19 +00001version: '2'
2networks:
Bartek Grzybowskie293ccd2020-06-10 12:14:34 +02003 front:
TamasBakaid38feb62019-02-28 09:06:19 +00004 driver: bridge
5 ipam:
6 config:
7 - gateway: "${IPGW}"
8 subnet: "${IPSUBNET}/28"
9 driver: default
10services:
11 pnf-simulator-${I}:
12 container_name: pnf-simulator-${I}
TamasBakai114c21c2019-03-19 09:56:28 +000013 image: nexus3.onap.org:10003/onap/masspnf-simulator:1.0.0-SNAPSHOT
TamasBakaid38feb62019-02-28 09:06:19 +000014 networks:
Bartek Grzybowskie293ccd2020-06-10 12:14:34 +020015 front:
TamasBakaid38feb62019-02-28 09:06:19 +000016 ipv4_address: "${IPPNFSIM}"
17 volumes:
18 - ./logs:/var/log
19 - ./json_schema:/json_schema
TamasBakai114c21c2019-03-19 09:56:28 +000020 - ./config/config.yml:/config/config.yml:rw
21 - ./files/:/files/:rw
RehanRazac5121c52019-04-04 12:42:15 +000022 environment:
23 TZ: "${TIMEZONE}"
TamasBakaid38feb62019-02-28 09:06:19 +000024 env_file:
25 - ./config/netconf.env
26 restart: on-failure
27
28 sftp-server-${I}:
Bartek Grzybowski1fbf8542020-06-10 15:16:23 +020029 container_name: sftp-server-${I}
TamasBakaid38feb62019-02-28 09:06:19 +000030 image: atmoz/sftp:alpine
31 networks:
Bartek Grzybowskie293ccd2020-06-10 12:14:34 +020032 front:
TamasBakaid38feb62019-02-28 09:06:19 +000033 ipv4_address: "${IPSFTP}"
TamasBakaib59bffb2019-03-22 09:52:03 +000034 ports:
35 - "${PORTSFTP}:22"
TamasBakaid38feb62019-02-28 09:06:19 +000036 volumes:
37 - ./files/onap/:/home/onap/
Bartek Grzybowski633caca2020-05-15 06:23:38 -070038 - ./fix-sftp-perms.sh:/etc/sftp.d/fix-sftp-perms.sh
TamasBakaid38feb62019-02-28 09:06:19 +000039 restart: on-failure
40 command: onap:pano:1001
41
42 ftpes-server-vsftpd-${I}:
Bartek Grzybowski1fbf8542020-06-10 15:16:23 +020043 container_name: ftpes-server-vsftpd-${I}
TamasBakaid38feb62019-02-28 09:06:19 +000044 image: docker.io/panubo/vsftpd
45 networks:
Bartek Grzybowskie293ccd2020-06-10 12:14:34 +020046 front:
TamasBakaid38feb62019-02-28 09:06:19 +000047 ipv4_address: "${IPFTPS}"
TamasBakaib59bffb2019-03-22 09:52:03 +000048 ports:
Bartek Grzybowski3161bfe2020-02-19 13:37:31 +010049 - "${PORTFTPS}:21"
50 - "${FTPS_PASV_MIN}-${FTPS_PASV_MAX}:${FTPS_PASV_MIN}-${FTPS_PASV_MAX}"
TamasBakaid38feb62019-02-28 09:06:19 +000051 environment:
52 FTP_USER: onap
53 FTP_PASSWORD: pano
54 PASV_ADDRESS: localhost
Bartek Grzybowski7d43e6c2020-02-19 09:55:02 +010055 PASV_MIN_PORT: ${FTPS_PASV_MIN}
TamasBakaie781c7c2019-07-11 11:26:20 +000056 PASV_MAX_PORT: ${FTPS_PASV_MAX}
TamasBakaid38feb62019-02-28 09:06:19 +000057 volumes:
58 - ./tls/ftp.crt:/etc/ssl/private/ftp.crt:ro
59 - ./tls/ftp.key:/etc/ssl/private/ftp.key:ro
60 - ./tls/dfc.crt:/etc/ssl/private/dfc.crt:ro
61 - ./config/vsftpd_ssl.conf:/etc/vsftpd_ssl.conf:ro
RehanRaza48f92042019-03-20 08:12:55 +000062 - ./files/onap/:/srv/
TamasBakaid38feb62019-02-28 09:06:19 +000063 restart: on-failure
64 command: vsftpd /etc/vsftpd_ssl.conf