mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-11-10 10:17:26 +01:00
Add redis cache container
This commit is contained in:
parent
0d0ad58045
commit
e1f610df6b
@ -13,6 +13,10 @@ services:
|
|||||||
cap_add:
|
cap_add:
|
||||||
- SYS_NICE
|
- SYS_NICE
|
||||||
|
|
||||||
|
redis:
|
||||||
|
container_name: cc-redis
|
||||||
|
image: redis
|
||||||
|
|
||||||
php:
|
php:
|
||||||
container_name: cc-php
|
container_name: cc-php
|
||||||
build:
|
build:
|
||||||
@ -33,6 +37,7 @@ services:
|
|||||||
- ${DATADIR}/job-archive:/var/lib/job-archive:cached
|
- ${DATADIR}/job-archive:/var/lib/job-archive:cached
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
- redis
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
container_name: cc-nginx
|
container_name: cc-nginx
|
||||||
@ -54,3 +59,4 @@ services:
|
|||||||
- NGINX_SYMFONY_SERVER_NAME=${NGINX_SYMFONY_SERVER_NAME}
|
- NGINX_SYMFONY_SERVER_NAME=${NGINX_SYMFONY_SERVER_NAME}
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATADIR}/symfony:/var/www/symfony:cached
|
- ${DATADIR}/symfony:/var/www/symfony:cached
|
||||||
|
|
||||||
|
@ -89,6 +89,7 @@ ARG INFLUXDB_ADMIN_TOKEN
|
|||||||
ARG MYSQL_PASSWORD
|
ARG MYSQL_PASSWORD
|
||||||
ENV INFLUXDB_URL=influxdb://symfony:${INFLUXDB_PASSWORD}@cc-influxdb:8086/ClusterCockpit
|
ENV INFLUXDB_URL=influxdb://symfony:${INFLUXDB_PASSWORD}@cc-influxdb:8086/ClusterCockpit
|
||||||
ENV INFLUXDB_V2_URL=http://cc-influxdb:8086
|
ENV INFLUXDB_V2_URL=http://cc-influxdb:8086
|
||||||
|
ENV REDIS_URL=redis://cc-redis
|
||||||
ENV INFLUXDB_TOKEN=${INFLUXDB_ADMIN_TOKEN}
|
ENV INFLUXDB_TOKEN=${INFLUXDB_ADMIN_TOKEN}
|
||||||
ENV DATABASE_URL=mysql://symfony:${MYSQL_PASSWORD}@db:3306/ClusterCockpit
|
ENV DATABASE_URL=mysql://symfony:${MYSQL_PASSWORD}@db:3306/ClusterCockpit
|
||||||
ENV CORS_ALLOW_ORIGIN=^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$
|
ENV CORS_ALLOW_ORIGIN=^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$
|
||||||
|
Loading…
Reference in New Issue
Block a user