switch to official php image
This commit is contained in:
parent
afa9601a2f
commit
87a4d92a1b
10
compose.yml
10
compose.yml
|
@ -1,7 +1,7 @@
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
services:
|
services:
|
||||||
backend:
|
app:
|
||||||
image: adhocore/phpfpm:8.0
|
image: php:8.0-fpm-alpine3.13
|
||||||
volumes:
|
volumes:
|
||||||
- "site_content:/var/www/html/"
|
- "site_content:/var/www/html/"
|
||||||
networks:
|
networks:
|
||||||
|
@ -28,14 +28,14 @@ services:
|
||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
order: start-first
|
order: start-first
|
||||||
labels:
|
labels:
|
||||||
- coop-cloud.${STACK_NAME}.backend.version=8.0-92fac7ac
|
- coop-cloud.${STACK_NAME}.app.version=8.0-92fac7ac
|
||||||
frontend:
|
frontend:
|
||||||
image: nginx:1.19.2
|
image: nginx:1.19.2
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
- proxy
|
- proxy
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- app
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
@ -99,7 +99,7 @@ configs:
|
||||||
template_driver: golang
|
template_driver: golang
|
||||||
nginx_default_conf:
|
nginx_default_conf:
|
||||||
name: ${STACK_NAME}_nginx_default_conf_${NGINX_DEFAULT_CONF_VERSION}
|
name: ${STACK_NAME}_nginx_default_conf_${NGINX_DEFAULT_CONF_VERSION}
|
||||||
file: default.conf
|
file: nginx.conf
|
||||||
php_uploads_conf:
|
php_uploads_conf:
|
||||||
name: ${STACK_NAME}_php_uploads_conf_${PHP_UPLOADS_CONF_VERSION}
|
name: ${STACK_NAME}_php_uploads_conf_${PHP_UPLOADS_CONF_VERSION}
|
||||||
file: uploads.ini
|
file: uploads.ini
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
{{ if (env "PHP_EXTENSIONS_TO_DISABLE") }}
|
{{ if (env "PHP_EXTENSIONS") }}
|
||||||
docker-php-ext-disable {{ env "PHP_EXTENSIONS_TO_DISABLE" }}
|
docker-php-ext-install {{ env "PHP_EXTENSIONS" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
if [ -n "$@" ]; then
|
if [ -n "$@" ]; then
|
||||||
"$@"
|
"$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ server {
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
try_files $uri = 404;
|
try_files $uri = 404;
|
||||||
#root html;
|
#root html;
|
||||||
fastcgi_pass backend:9000;
|
fastcgi_pass app:9000;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
Loading…
Reference in New Issue