Optimize php config. Use existing www-data user.

This commit is contained in:
Jan Eitzinger
2021-09-14 12:42:12 +02:00
parent e612f6c3ce
commit 7a9f1ba599
6 changed files with 11 additions and 21 deletions

View File

@@ -42,9 +42,6 @@ services:
- LDAP_DOMAIN=${LDAP_DOMAIN}
volumes:
- ${DATADIR}/ldap:/container/service/slapd/assets/config/bootstrap/ldif/custom
ports:
- "127.0.0.1:389:389"
- "127.0.0.1:636:636"
redis:
container_name: cc-redis
@@ -52,7 +49,7 @@ services:
command: [
"redis-server",
"--save", "",
"--maxmemory", "1gb",
"--maxmemory", "2gb",
"--maxmemory-policy", "allkeys-lru"]
php:
@@ -87,11 +84,6 @@ services:
container_name: cc-nginx
build:
context: ./nginx
args:
NGINX_SYMFONY_SERVER_NAME: ${NGINX_SYMFONY_SERVER_NAME}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
INFLUXDB_PASSWORD: ${INFLUXDB_PASSWORD}
APP_ENVIRONMENT: ${APP_ENVIRONMENT}
ports:
- "127.0.0.1:${NGINX_PORT}:80"
depends_on:
@@ -100,7 +92,6 @@ services:
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx/conf.d
- NGINX_ENVSUBST_TEMPLATE_DIR=/etc/nginx/templates
- NGINX_ENVSUBST_TEMPLATE_SUFFIX=.template
- NGINX_SYMFONY_SERVER_NAME=${NGINX_SYMFONY_SERVER_NAME}
volumes:
- ${DATADIR}/symfony:/var/www/symfony:cached