aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/pnfsimulator/docker-compose.yml
blob: d853ca9daec949db9ce5bc0c2c80a126cebec459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3'

services:
  pnf-simulator:
    container_name: pnf-simulator
    image: nexus3.onap.org:10003/onap/pnf-simulator:latest
    ports:
      - "5000:5000"
    volumes:
      - ./logs:/var/log
      - ./json_schema:/json_schema
    env_file:
      - ./config/netconf.env
    restart: on-failure
    depends_on:
      - netopeer

  netopeer:
    container_name: netopeer
    image: sysrepo/sysrepo-netopeer2:latest
    ports:
      - "830:830"
    volumes:
      - ./netconf:/netconf
    env_file:
      - ./config/netconf.env
    restart: on-failure
    depends_on:
      - sftp-server
      - ftpes-server-pure-ftpd
      - ftpes-server-vsftpd

  sftp-server:
    container_name: sftp-server
    image: atmoz/sftp:alpine
    ports:
      - "2222:22"
    volumes:
      - ./sftp:/home/sftp-user/sftp
      - ./ssh/ssh_host_rsa_key.pub:/home/sftp-user/.ssh/keys/ssh_host_rsa_key.pub:ro
    restart: on-failure
    command: sftp-user::1001

  ftpes-server-pure-ftpd:
    container_name: ftpes-server-pure-ftpd
    image: stilliard/pure-ftpd:latest
    ports:
      - "2221:21"
      - "30000-30009:30000-30009"
    volumes:
      - ./ftpes/files:/home/ftpusers/onap
      - ./ftpes/pure-ftpd/userpass/:/etc/pure-ftpd/passwd/
      - ./ftpes/pure-ftpd/tls/:/etc/ssl/private/
    environment:
      PUBLICHOST: localhost
      ADDED_FLAGS: --tls=2
      FTP_USER_HOME: onap
    restart: on-failure

  ftpes-server-vsftpd:
    container_name: ftpes-server-vsftpd
    image: docker.io/panubo/vsftpd
    ports:
      - "8221:21"
      - "8001-8010:8001-8010"
    environment:
      FTP_USER: onap
      FTP_PASSWORD: pano
      PASV_ADDRESS: localhost
      PASV_MIN_PORT: 8001
      PASV_MAX_PORT: 8010
    volumes:
      - ./ftpes/vsftpd/tls/vsftpd.crt:/etc/ssl/private/vsftpd.crt:ro
      - ./ftpes/vsftpd/tls/vsftpd.key:/etc/ssl/private/vsftpd.key:ro
      - ./ftpes/vsftpd/configuration/vsftpd_ssl.conf:/etc/vsftpd_ssl.conf:ro
      - ./ftpes/files/onap/ftpes-onap.txt:/home/vsftpd/onap/ftpes-onap.txt:ro
      - ./ftpes/files/onap/ftpes-onap.txt:/srv/ftpes-onap.txt:ro
    restart: on-failure
    command: vsftpd /etc/vsftpd_ssl.conf