aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/datafilecollector-testharness/simulator-group/docker-compose-template.yml
blob: 850563155f37d0124f7af1790f3b5fba00847b10 (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
version: '2'

networks:
  dfcnet:
    ipam:
      config:
        - subnet: 192.168.100.0/16
          
services:
      
  drsim:
    networks:
      dfcnet:
        ipv4_address: 192.168.100.2
    image: drsim_common:latest
    ports:
     - "3906:3906"
     - "3907:3907"
    container_name: dfc_dr-sim
    command: node dmaapDR.js ${DR_TC}

  drsim_redir:
    networks:
      dfcnet:
        ipv4_address: 192.168.100.3
    image: drsim_common:latest
    ports:
     - "3908:3908"
     - "3909:3909"
    container_name: dfc_dr-redir-sim
    command: node dmaapDR_redir.js ${DR_REDIR_TC}

  mrsim:
    networks:
      dfcnet:
        ipv4_address: 192.168.100.1
    image: mrsim:latest
    ports:
     - "2222:2222"
    container_name: dfc_mr-sim
    command: python mr-sim.py ${MR_TC}

  sftp-server:
    network_mode: bridge
    container_name: dfc_sftp-server
    image: atmoz/sftp:alpine
    ports:
      - "1022:22"
    restart: on-failure
    command: onap:pano:1001


  ftpes-server-vsftpd:
    network_mode: bridge
    container_name: dfc_ftpes-server-vsftpd
    image: docker.io/panubo/vsftpd
    ports:
      - "21:21"
      - "8001-8010:8001-8010"
    environment:
      FTP_USER: onap
      FTP_PASSWORD: pano
      PASV_ADDRESS: localhost
      PASV_MIN_PORT: 8001
      PASV_MAX_PORT: 8010
    volumes:
      - ./tls/ftp.crt:/etc/ssl/private/ftp.crt:ro
      - ./tls/ftp.key:/etc/ssl/private/ftp.key:ro
      - ./tls/dfc.crt:/etc/ssl/private/dfc.crt:ro
      - ./configuration/vsftpd_ssl.conf:/etc/vsftpd_ssl.conf:ro

    restart: on-failure
    command: vsftpd /etc/vsftpd_ssl.conf