aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim/pnf-sim-lightweight/docker-compose-template.yml
blob: a13a76bd7f2c6859e594d6fcbf342f7646857119 (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
version: '2'
networks:
  front-${I}:
    driver: bridge
    ipam:
      config:
      - gateway: "${IPGW}"
        subnet: "${IPSUBNET}/28"
      driver: default
services:
  pnf-simulator-${I}:
    container_name: pnf-simulator-${I}
    image: nexus3.onap.org:10003/onap/masspnf-simulator:1.0.0-SNAPSHOT
    networks:
      front-${I}:
        ipv4_address: "${IPPNFSIM}"
    volumes:
      - ./logs:/var/log
      - ./json_schema:/json_schema
      - ./config/config.yml:/config/config.yml:rw
      - ./files/:/files/:rw
    environment:
      TZ: "${TIMEZONE}"
    env_file:
      - ./config/netconf.env
    restart: on-failure

  sftp-server-${I}:
    container_name: sftp-server-$I
    image: atmoz/sftp:alpine
    networks:
      front-${I}:
        ipv4_address: "${IPSFTP}"
    ports:
      - "${PORTSFTP}:22"
    volumes:
      - ./files/onap/:/home/onap/
    restart: on-failure
    command: onap:pano:1001

  ftpes-server-vsftpd-${I}:
    container_name: ftpes-server-vsftpd-$I
    image: docker.io/panubo/vsftpd
    networks:
      front-${I}:
        ipv4_address: "${IPFTPS}"
    ports:
      - "${PORTFTPS}:21"
      - "${FTPS_PASV_MIN}-${FTPS_PASV_MAX}:${FTPS_PASV_MIN}-${FTPS_PASV_MAX}"
    environment:
      FTP_USER: onap
      FTP_PASSWORD: pano
      PASV_ADDRESS: localhost
      PASV_MIN_PORT: ${FTPS_PASV_MIN}
      PASV_MAX_PORT: ${FTPS_PASV_MAX}
    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
      - ./config/vsftpd_ssl.conf:/etc/vsftpd_ssl.conf:ro
      - ./files/onap/:/srv/
    restart: on-failure
    command: vsftpd /etc/vsftpd_ssl.conf