Draft for INT-607
[integration.git] / test / mocks / pnfsimulator / docker-compose.yml
1 version: '3'
2
3 services:
4   pnf-simulator:
5     container_name: pnf-simulator
6     image: nexus3.onap.org:10003/onap/pnf-simulator:latest
7     ports:
8       - "5000:5000"
9     volumes:
10       - ./logs:/var/log
11       - ./json_schema:/json_schema
12     env_file:
13       - ./config/netconf.env
14     restart: on-failure
15     depends_on:
16       - netopeer
17
18   netopeer:
19     container_name: netopeer
20     image: sysrepo/sysrepo-netopeer2:latest
21     ports:
22       - "830:830"
23     volumes:
24       - ./netconf:/netconf
25     env_file:
26       - ./config/netconf.env
27     restart: on-failure
28     depends_on:
29       - sftp-server
30
31   sftp-server:
32     container_name: sftp-server
33     image: atmoz/sftp:alpine
34     ports:
35       - "2222:22"
36     volumes:
37       - ./sftp:/home/sftp-user/sftp
38       - ./ssh/ssh_host_rsa_key.pub:/home/sftp-user/.ssh/keys/ssh_host_rsa_key.pub:ro
39     restart: on-failure
40     command: sftp-user::1001