blob: db1ee4be1ab1c669a5bb786c9583d3ba0fccd19e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
version: "2.1"
services:
http-server:
image: onap/org.onap.integration.simulators.httpserver
ports:
- "7080:80"
- "7443:443"
volumes:
- ~/httpservervolumes/:/usr/local/apache2/htdocs
- ./resources/.htaccess:/usr/local/apache2/htdocs/.htaccess
- ./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;
/usr/sbin/apache2ctl -D FOREGROUND;
"
restart: on-failure
|