commit
2643087b71
@ -379,6 +379,7 @@ APACHE_PHP_UPSTREAM_TIMEOUT=60
|
|||||||
APACHE_DOCUMENT_ROOT=/var/www/
|
APACHE_DOCUMENT_ROOT=/var/www/
|
||||||
APACHE_SSL_PATH=./apache2/ssl/
|
APACHE_SSL_PATH=./apache2/ssl/
|
||||||
APACHE_INSTALL_HTTP2=false
|
APACHE_INSTALL_HTTP2=false
|
||||||
|
APACHE_FOR_MAC_M1=false
|
||||||
|
|
||||||
### MYSQL #################################################
|
### MYSQL #################################################
|
||||||
|
|
||||||
|
@ -127,3 +127,21 @@ WORKSPACE_INSTALL_LIBPNG=true
|
|||||||
docker-compose build workspace
|
docker-compose build workspace
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Apache2 container won't start on mac m1
|
||||||
|
|
||||||
|
To fix the problem you can follow those steps
|
||||||
|
|
||||||
|
1 - Open the `.env`.
|
||||||
|
|
||||||
|
2 - Search for `APACHE_FOR_MAC_M1` or add the key, if missing.
|
||||||
|
|
||||||
|
3 - Set the value to true:
|
||||||
|
|
||||||
|
```dotenv
|
||||||
|
APACHE_FOR_MAC_M1=true
|
||||||
|
```
|
||||||
|
4 - Finally rebuild the workspace image
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose build apache2
|
||||||
|
```
|
||||||
|
@ -30,3 +30,12 @@ ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
|
|||||||
CMD ["/bin/bash", "/opt/startup.sh"]
|
CMD ["/bin/bash", "/opt/startup.sh"]
|
||||||
|
|
||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
|
|
||||||
|
ARG APACHE_FOR_MAC_M1=false
|
||||||
|
|
||||||
|
RUN if [ ${APACHE_FOR_MAC_M1} = true ]; then \
|
||||||
|
# Change application source from deb.debian.org to aliyun source
|
||||||
|
wget -O "/usr/local/bin/go-replace" "https://github.com/webdevops/goreplace/releases/download/1.1.2/gr-arm64-linux" && \
|
||||||
|
chmod +x "/usr/local/bin/go-replace" && \
|
||||||
|
"/usr/local/bin/go-replace" --version \
|
||||||
|
;fi
|
||||||
|
@ -485,6 +485,7 @@ services:
|
|||||||
- PHP_UPSTREAM_TIMEOUT=${APACHE_PHP_UPSTREAM_TIMEOUT}
|
- PHP_UPSTREAM_TIMEOUT=${APACHE_PHP_UPSTREAM_TIMEOUT}
|
||||||
- DOCUMENT_ROOT=${APACHE_DOCUMENT_ROOT}
|
- DOCUMENT_ROOT=${APACHE_DOCUMENT_ROOT}
|
||||||
- APACHE_INSTALL_HTTP2=${APACHE_INSTALL_HTTP2}
|
- APACHE_INSTALL_HTTP2=${APACHE_INSTALL_HTTP2}
|
||||||
|
- APACHE_FOR_MAC_M1=${APACHE_FOR_MAC_M1}
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
- ${APACHE_HOST_LOG_PATH}:/var/log/apache2
|
- ${APACHE_HOST_LOG_PATH}:/var/log/apache2
|
||||||
|
Loading…
Reference in New Issue
Block a user