Skip to content
Snippets Groups Projects
Commit 3f6b822a authored by hahn's avatar hahn
Browse files

update dockerfiles

parent 66980b1c
No related branches found
No related tags found
1 merge request!195534 add docker
# ====================================================================== # ======================================================================
# #
# GENERATED BY ./init.sh - template: ./templates/dot_env - e2cde05722688ff85d3a93e9cd55787e # GENERATED BY docker/init.sh - template: ./templates/dot_env - e2cde05722688ff85d3a93e9cd55787e
# values to be used in docker-composer.yml # values to be used in docker-composer.yml
# #
# ====================================================================== # ======================================================================
......
# #
# GENERATED BY ./init.sh - template: ./templates/web-server-Dockerfile - 42dce773c83597a7d05af398bdd66d15 # GENERATED BY docker/init.sh - template: ./templates/web-server-Dockerfile - 42dce773c83597a7d05af398bdd66d15
# #
FROM php:8.1-apache FROM php:8.1-apache
# install packages # install packages
RUN apt-get update && apt-get install -y git unzip zip RUN apt-get update && apt-get install -y git unzip zip rsync
# enable apache modules # enable apache modules
RUN a2enmod rewrite RUN a2enmod rewrite
......
# #
# GENERATED BY ./init.sh - template: ./templates/vhost_app.conf - 9a9cf79de5a3584c0cef6cb79c339c25 # GENERATED BY docker/init.sh - template: ./templates/vhost_app.conf - 9a9cf79de5a3584c0cef6cb79c339c25
# #
......
; ;
; GENERATED BY ./init.sh - template: ./templates/extra-php-config.ini - 80c23edaf568e2c36b9926fe2339e481 ; GENERATED BY docker/init.sh - template: ./templates/extra-php-config.ini - 80c23edaf568e2c36b9926fe2339e481
; ;
[PHP] [PHP]
......
# #
# GENERATED BY ./init.sh - template: ./templates/docker-compose.yml - 482a0fd9745c482f4cc4b3871c3fa4b3 # GENERATED BY docker/init.sh - template: ./templates/docker-compose.yml - 97c88229bd2b5099544c013052b8d9c3
# #
# ====================================================================== # ======================================================================
# #
...@@ -31,12 +31,18 @@ services: ...@@ -31,12 +31,18 @@ services:
working_dir: ${WEBROOT} working_dir: ${WEBROOT}
volumes: volumes:
- ../:/var/www/${APP_NAME} # service config
- ../data/imldeployment:/var/imldeployment
- ../data/tmp:/var/tmp/imldeployment
- ./containers/web-server/apache/sites-enabled:/etc/apache2/sites-enabled - ./containers/web-server/apache/sites-enabled:/etc/apache2/sites-enabled
- ./containers/web-server/php/extra-php-config.ini:/usr/local/etc/php/conf.d/extra-php-config.ini - ./containers/web-server/php/extra-php-config.ini:/usr/local/etc/php/conf.d/extra-php-config.ini
# data dirs
- ../data/.ssh:/var/www/.ssh
- ../data/imldeployment:/var/imldeployment
- ../data/tmp:/var/tmp/imldeployment
# app webroot
- ../:/var/www/${APP_NAME}
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"] test: ["CMD", "curl", "-f", "http://localhost"]
interval: 10s interval: 10s
......
...@@ -282,7 +282,7 @@ while true; do ...@@ -282,7 +282,7 @@ while true; do
_wait _wait
;; ;;
u) u)
if docker-compose --verbose up -d --remove-orphans; then if docker-compose --verbose up -d --remove-orphans --build; then
# test ! -z "${APP_ONSTARTUP}" && sleep 2 && docker exec -it appmonitor-server /bin/bash -c "${APP_ONSTARTUP}" # test ! -z "${APP_ONSTARTUP}" && sleep 2 && docker exec -it appmonitor-server /bin/bash -c "${APP_ONSTARTUP}"
echo "In a web browser:" echo "In a web browser:"
echo " $frontendurl" echo " $frontendurl"
......
...@@ -32,12 +32,18 @@ services: ...@@ -32,12 +32,18 @@ services:
working_dir: ${WEBROOT} working_dir: ${WEBROOT}
volumes: volumes:
- ../:/var/www/${APP_NAME} # service config
- ../data/imldeployment:/var/imldeployment
- ../data/tmp:/var/tmp/imldeployment
- ./containers/web-server/apache/sites-enabled:/etc/apache2/sites-enabled - ./containers/web-server/apache/sites-enabled:/etc/apache2/sites-enabled
- ./containers/web-server/php/extra-php-config.ini:/usr/local/etc/php/conf.d/extra-php-config.ini - ./containers/web-server/php/extra-php-config.ini:/usr/local/etc/php/conf.d/extra-php-config.ini
# data dirs
- ../data/.ssh:/var/www/.ssh
- ../data/imldeployment:/var/imldeployment
- ../data/tmp:/var/tmp/imldeployment
# app webroot
- ../:/var/www/${APP_NAME}
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"] test: ["CMD", "curl", "-f", "http://localhost"]
interval: 10s interval: 10s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment