2021-05-19 14:27:44 +02:00
|
|
|
services:
|
|
|
|
db:
|
2021-06-11 11:25:55 +02:00
|
|
|
container_name: cc-db
|
2021-05-19 14:27:44 +02:00
|
|
|
image: mysql:8.0.22
|
|
|
|
command: ["--default-authentication-plugin=mysql_native_password"]
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
2021-08-25 11:24:24 +02:00
|
|
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
|
|
MYSQL_USER: ${MYSQL_USER}
|
2021-05-19 14:27:44 +02:00
|
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
|
|
volumes:
|
2021-08-03 10:04:54 +02:00
|
|
|
- ${DATADIR}/sql-init:/docker-entrypoint-initdb.d
|
2021-06-15 16:45:15 +02:00
|
|
|
cap_add:
|
|
|
|
- SYS_NICE
|
2021-05-19 14:27:44 +02:00
|
|
|
|
2021-08-03 12:03:23 +02:00
|
|
|
redis:
|
|
|
|
container_name: cc-redis
|
|
|
|
image: redis
|
2021-08-19 11:57:55 +02:00
|
|
|
command: [
|
|
|
|
"redis-server",
|
|
|
|
"--save", "",
|
|
|
|
"--maxmemory", "1gb",
|
|
|
|
"--maxmemory-policy", "allkeys-lru"]
|
2021-08-03 12:03:23 +02:00
|
|
|
|
2021-05-19 14:27:44 +02:00
|
|
|
php:
|
2021-06-11 11:25:55 +02:00
|
|
|
container_name: cc-php
|
2021-05-19 14:27:44 +02:00
|
|
|
build:
|
|
|
|
context: ./php-fpm
|
|
|
|
args:
|
2021-09-06 11:07:18 +02:00
|
|
|
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE}
|
|
|
|
PHP_XDEBUG_CLIENT_PORT: ${PHP_XDEBUG_CLIENT_PORT}
|
|
|
|
PHP_XDEBUG_CLIENT_HOST: ${PHP_XDEBUG_CLIENT_HOST}
|
2021-05-19 14:27:44 +02:00
|
|
|
SYMFONY_CLI_VERSION: 4.23.2
|
2021-08-25 11:24:24 +02:00
|
|
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
|
|
MYSQL_USER: ${MYSQL_USER}
|
2021-05-19 14:27:44 +02:00
|
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
2021-09-06 11:07:18 +02:00
|
|
|
LDAP_PASSWORD: ${LDAP_ADMIN_PASSWORD}
|
2021-05-19 14:27:44 +02:00
|
|
|
INFLUXDB_PASSWORD: ${INFLUXDB_PASSWORD}
|
2021-08-25 11:24:24 +02:00
|
|
|
INFLUXDB_PORT: ${INFLUXDB_PORT}
|
2021-06-24 18:18:07 +02:00
|
|
|
INFLUXDB_ADMIN_TOKEN: ${INFLUXDB_ADMIN_TOKEN}
|
2021-06-11 13:44:51 +02:00
|
|
|
APP_ENVIRONMENT: ${APP_ENVIRONMENT}
|
2021-06-09 09:53:35 +02:00
|
|
|
environment:
|
2021-06-11 13:44:51 +02:00
|
|
|
- APP_CLUSTERCOCKPIT_INIT=${APP_CLUSTERCOCKPIT_INIT}
|
2021-05-19 14:27:44 +02:00
|
|
|
volumes:
|
2021-06-09 09:53:35 +02:00
|
|
|
- ${DATADIR}/symfony:/var/www/symfony:cached
|
|
|
|
- ${DATADIR}/job-archive:/var/lib/job-archive:cached
|
2021-05-19 14:27:44 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
2021-08-03 12:03:23 +02:00
|
|
|
- redis
|
2021-05-19 14:27:44 +02:00
|
|
|
|
|
|
|
nginx:
|
2021-06-11 11:25:55 +02:00
|
|
|
container_name: cc-nginx
|
2021-05-19 14:27:44 +02:00
|
|
|
build:
|
|
|
|
context: ./nginx
|
|
|
|
args:
|
|
|
|
NGINX_SYMFONY_SERVER_NAME: ${NGINX_SYMFONY_SERVER_NAME}
|
2021-05-21 08:08:04 +02:00
|
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
|
|
INFLUXDB_PASSWORD: ${INFLUXDB_PASSWORD}
|
2021-06-22 15:17:11 +02:00
|
|
|
APP_ENVIRONMENT: ${APP_ENVIRONMENT}
|
2021-05-19 14:27:44 +02:00
|
|
|
ports:
|
2021-06-10 16:25:21 +02:00
|
|
|
- "127.0.0.1:${NGINX_PORT}:80"
|
2021-09-06 11:07:18 +02:00
|
|
|
- "127.0.0.1:${PHP_XDEBUG_CLIENT_PORT}:${PHP_XDEBUG_CLIENT_PORT}"
|
2021-05-19 14:27:44 +02:00
|
|
|
depends_on:
|
|
|
|
- php
|
|
|
|
environment:
|
|
|
|
- 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:
|
2021-06-09 09:53:35 +02:00
|
|
|
- ${DATADIR}/symfony:/var/www/symfony:cached
|