diff options
author | Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com> | 2021-03-01 14:00:50 +0100 |
---|---|---|
committer | Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com> | 2021-03-05 10:34:22 +0100 |
commit | 3a379f80dd6df7ea28210e46c2cea81a64b95534 (patch) | |
tree | 7d576ffb18dc2bc42ab865af8bdd1f57313e899d /docker-compose.yml | |
parent | b4c81d195c09cc2a7623316d417de7624f2b6bb2 (diff) |
move httpserver from pnf-simulator repo to nf-simulator/pm-https-server directly.
Change-Id: I80b7db9dbe02389cb2a81cdbfb201830349ca5b7
Issue-ID: INT-1869
Signed-off-by: Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com>
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..784ec0e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,23 @@ +version: "2.1" + +services: + http-server: + image: onap/org.onap.integration.simulators.pmhttpsserver + ports: + - "32080:80" + - "8080:8080" + - "32443:443" + - "32000:32000" + - "32100:32100" + volumes: + - ~/httpservervolumes/:/usr/local/apache2/htdocs + - ./logs:/var/log/apache2 + command: bash -c " + echo 'Http Server start'; + while [[ $$(ls -1 /etc/apache2/certs/ | wc -l) != '3' ]]; do echo 'Waiting for certs...'; sleep 3; done; + chmod 777 /usr/local/apache2/htdocs; + cp /usr/local/apache2/conf/upload.php /usr/local/apache2/htdocs/upload.php; + touch /usr/local/apache2/htdocs/index.html; + /usr/sbin/apache2ctl -D FOREGROUND; + " + restart: on-failure |