Skip to content
Snippets Groups Projects
Commit c0761149 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fix fpm host

parent 7f03313c
No related branches found
No related tags found
No related merge requests found
ENVIRONMENT=development # Environment to deploy to. Can be: development|production
NODE_TAG=10
COMPOSER_VERSION=2.6.5
IMAGE_NAME=metagermaps
IMAGE_TAG=dev
# If you do not have user id 1000 on your local machine you can switch here to make sure permissions of dynamically created data match your current user
USER_ID=1000 # User ID used in the Docker containers
GROUP_ID=1000 # Group ID used in the Docker containers
\ No newline at end of file
GROUP_ID=1000 # Group ID used in the Docker containers
NODE_TAG=10
COMPOSER_VERSION=2.6.5
FPMHOST="fpm:9000"
\ No newline at end of file
......@@ -4,6 +4,7 @@ variables:
DEPLOY_KUBERNETES_IMAGE: alpine/k8s:1.27.8
KUBE_NAMESPACE: maps
IMAGE_TAG_PREFIX: master
FPM_HOST: localhost:9000
workflow:
rules:
......
......@@ -2,6 +2,7 @@ FROM nginx:1.25.3 as development
ARG USER_ID=1000
ARG GROUP_ID=1000
ARG FPMHOST="fpm:9000"
RUN deluser nginx
RUN addgroup --gid $GROUP_ID mgmaps && useradd -d /home/mgmaps -u $USER_ID -g $GROUP_ID -m -s /bin/bash mgmaps
......@@ -10,7 +11,8 @@ RUN cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime
ADD ./build/nginx/config/nginx.conf /etc/nginx/nginx.conf
RUN rm /etc/nginx/conf.d/default.conf
ADD ./build/nginx/config/maps.conf /etc/nginx/conf.d/maps.conf
ADD ./build/nginx/config/maps.conf /tmp/maps.conf
RUN envsubst '$FPMHOST' < /tmp/maps.conf > /etc/nginx/conf.d/maps.conf
# Fix directories the root image is using
RUN mkdir -p /var/cache/nginx/client_temp && \
......
......@@ -13,7 +13,7 @@ server {
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass fpm:9000;
fastcgi_pass $FPMHOST;
fastcgi_index index.php;
fastcgi_read_timeout 900;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment