diff --git a/docker-compose.yml b/docker-compose.yml index 82e56f7..1430c0c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,10 @@ services: cap_add: - SYS_NICE + redis: + container_name: cc-redis + image: redis + php: container_name: cc-php build: @@ -33,6 +37,7 @@ services: - ${DATADIR}/job-archive:/var/lib/job-archive:cached depends_on: - db + - redis nginx: container_name: cc-nginx @@ -54,3 +59,4 @@ services: - NGINX_SYMFONY_SERVER_NAME=${NGINX_SYMFONY_SERVER_NAME} volumes: - ${DATADIR}/symfony:/var/www/symfony:cached + diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index 84d9e6c..ad51db7 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -89,6 +89,7 @@ ARG INFLUXDB_ADMIN_TOKEN ARG MYSQL_PASSWORD ENV INFLUXDB_URL=influxdb://symfony:${INFLUXDB_PASSWORD}@cc-influxdb:8086/ClusterCockpit ENV INFLUXDB_V2_URL=http://cc-influxdb:8086 +ENV REDIS_URL=redis://cc-redis ENV INFLUXDB_TOKEN=${INFLUXDB_ADMIN_TOKEN} ENV DATABASE_URL=mysql://symfony:${MYSQL_PASSWORD}@db:3306/ClusterCockpit ENV CORS_ALLOW_ORIGIN=^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$