Krzysztof Gajewski | b837e33 | 2020-12-29 13:58:35 +0100 | [diff] [blame] | 1 | version: '3' |
| 2 | |
| 3 | services: |
| 4 | |
Krzysztof Gajewski | c746882 | 2021-02-01 17:46:51 +0100 | [diff] [blame] | 5 | http-https-server: |
| 6 | container_name: http-https-server-httpd |
Krzysztof Gajewski | b1b6fa1 | 2021-02-25 11:38:57 +0100 | [diff] [blame] | 7 | image: nexus3.onap.org:10001/onap/org.onap.integration.simulators.httpserver:1.0.5 |
Krzysztof Gajewski | c746882 | 2021-02-01 17:46:51 +0100 | [diff] [blame] | 8 | environment: |
| 9 | APACHE_LOG_DIR: /usr/local/apache2/logs |
Krzysztof Gajewski | b837e33 | 2020-12-29 13:58:35 +0100 | [diff] [blame] | 10 | ports: |
| 11 | - "80:80" |
Krzysztof Gajewski | c746882 | 2021-02-01 17:46:51 +0100 | [diff] [blame] | 12 | - "443:443" |
| 13 | - "8080:8080" |
Krzysztof Gajewski | aadaad6 | 2021-02-15 23:41:16 +0100 | [diff] [blame] | 14 | - "32000:32000" |
| 15 | - "32100:32100" |
Krzysztof Gajewski | b837e33 | 2020-12-29 13:58:35 +0100 | [diff] [blame] | 16 | volumes: |
Krzysztof Gajewski | b1b6fa1 | 2021-02-25 11:38:57 +0100 | [diff] [blame] | 17 | - ./../certservice/generated-certs/apache-pem:/etc/apache2/certs:ro |
Krzysztof Gajewski | c746882 | 2021-02-01 17:46:51 +0100 | [diff] [blame] | 18 | - ./files/onap/http:/usr/local/apache2/htdocs |
Krzysztof Gajewski | b1b6fa1 | 2021-02-25 11:38:57 +0100 | [diff] [blame] | 19 | command: bash -c " |
| 20 | echo 'Http Server start'; |
| 21 | touch /usr/local/apache2/htdocs/index.html; |
| 22 | /usr/sbin/apache2ctl -D FOREGROUND; |
| 23 | " |
Krzysztof Gajewski | b837e33 | 2020-12-29 13:58:35 +0100 | [diff] [blame] | 24 | restart: on-failure |