Wojciech Sliwka | 032ff22 | 2019-07-10 13:48:52 +0200 | [diff] [blame] | 1 | version: '3' |
| 2 | |
| 3 | services: |
| 4 | zookeeper: |
| 5 | image: wurstmeister/zookeeper |
| 6 | ports: |
| 7 | - "2181:2181" |
| 8 | networks: |
| 9 | - netconfnetwork |
| 10 | |
| 11 | kafka1: |
| 12 | image: wurstmeister/kafka:1.1.0 |
| 13 | ports: |
| 14 | - "9092:9092" |
| 15 | hostname: kafka1 |
| 16 | networks: |
| 17 | - netconfnetwork |
| 18 | environment: |
| 19 | KAFKA_ADVERTISED_PORT: 9092 |
| 20 | KAFKA_ADVERTISED_HOST_NAME: kafka1 |
| 21 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 22 | KAFKA_CREATE_TOPICS: "config:1:1" |
| 23 | KAFKA_DELETE_RETENTION_MS: 604800000 |
| 24 | KAFKA_LOG_CLEANER_DELETE_RETENTION_MS: 604800000 |
| 25 | depends_on: |
| 26 | - zookeeper |
| 27 | |
| 28 | netconf-simulator: |
| 29 | image: nexus3.onap.org:10003/onap/netconfsimulator:5.0.0-SNAPSHOT |
| 30 | ports: |
| 31 | - "9000:8080" |
| 32 | restart: on-failure |
| 33 | hostname: netconf-simulator |
| 34 | networks: |
| 35 | - netconfnetwork |
| 36 | depends_on: |
| 37 | - zookeeper |
| 38 | - kafka1 |
| 39 | - netopeer |
| 40 | |
| 41 | netopeer: |
| 42 | image: sysrepo/sysrepo-netopeer2:latest |
| 43 | ports: |
| 44 | - "830:830" |
| 45 | - "5002:5002" |
| 46 | - "6513:6513" |
| 47 | volumes: |
| 48 | - ./netconf:/netconf |
| 49 | - ./netopeer-change-saver-native:/netopeer-change-saver |
| 50 | - ./tls:/tls |
| 51 | env_file: |
| 52 | - ./config/netconf.env |
| 53 | restart: on-failure |
| 54 | networks: |
| 55 | - netconfnetwork |
| 56 | depends_on: |
| 57 | - sftp-server |
| 58 | - ftpes-server |
| 59 | environment: |
| 60 | http_proxy: ${http_proxy} |
| 61 | https_proxy: ${https_proxy} |
| 62 | command: |
| 63 | - /netconf/initialize_netopeer.sh |
| 64 | |
| 65 | sftp-server: |
| 66 | image: atmoz/sftp:alpine |
| 67 | ports: |
| 68 | - "2222:22" |
| 69 | volumes: |
| 70 | - ./sftp:/home/sftp-user/sftp |
| 71 | - ./ssh/ssh_host_rsa_key.pub:/home/sftp-user/.ssh/keys/ssh_host_rsa_key.pub |
| 72 | networks: |
| 73 | - netconfnetwork |
| 74 | restart: on-failure |
| 75 | command: sftp-user::1001 |
| 76 | |
| 77 | ftpes-server: |
| 78 | image: stilliard/pure-ftpd:latest |
| 79 | ports: |
| 80 | - "2221:21" |
| 81 | - "30000-30009:30000-30009" |
| 82 | volumes: |
| 83 | - ./ftpes/files:/home/ftpusers/onap |
| 84 | - ./ftpes/userpass/:/etc/pure-ftpd/passwd/ |
| 85 | - ./ftpes/tls/:/etc/ssl/private/ |
| 86 | networks: |
| 87 | - netconfnetwork |
| 88 | environment: |
| 89 | PUBLICHOST: localhost |
| 90 | ADDED_FLAGS: --tls=2 |
| 91 | FTP_USER_HOME: onap |
| 92 | restart: on-failure |
| 93 | |
| 94 | networks: |
| 95 | netconfnetwork: |
| 96 | driver: bridge |