aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/pnfsimulator/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/mocks/pnfsimulator/docker-compose.yml')
-rw-r--r--test/mocks/pnfsimulator/docker-compose.yml18
1 files changed, 17 insertions, 1 deletions
diff --git a/test/mocks/pnfsimulator/docker-compose.yml b/test/mocks/pnfsimulator/docker-compose.yml
index af9494a2a..5f73cde74 100644
--- a/test/mocks/pnfsimulator/docker-compose.yml
+++ b/test/mocks/pnfsimulator/docker-compose.yml
@@ -8,8 +8,10 @@ services:
- "5000:5000"
volumes:
- ./logs:/var/log
+ - ./json_schema:/json_schema
env_file:
- ./config/netconf.env
+ restart: on-failure
depends_on:
- netopeer
@@ -18,7 +20,21 @@ services:
image: sysrepo/sysrepo-netopeer2:latest
ports:
- "830:830"
+ volumes:
+ - ./netconf:/netconf
env_file:
- ./config/netconf.env
+ restart: on-failure
+ depends_on:
+ - sftp-server
+
+ sftp-server:
+ container_name: sftp-server
+ image: atmoz/sftp:alpine
+ ports:
+ - "2222:22"
volumes:
- - ./netconf:/netconf
+ - ./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 \ No newline at end of file