aboutsummaryrefslogtreecommitdiffstats
path: root/httpserver/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'httpserver/docker-compose.yml')
-rw-r--r--httpserver/docker-compose.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/httpserver/docker-compose.yml b/httpserver/docker-compose.yml
new file mode 100644
index 0000000..0b80465
--- /dev/null
+++ b/httpserver/docker-compose.yml
@@ -0,0 +1,23 @@
+version: "2.1"
+
+services:
+ http-server:
+ image: onap/org.onap.integration.simulators.httpserver
+ 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