2021-05-19 14:27:44 +02:00
|
|
|
services:
|
2021-11-26 13:07:19 +01:00
|
|
|
nats:
|
2021-11-29 10:29:56 +01:00
|
|
|
container_name: cc-nats
|
2021-11-26 13:07:19 +01:00
|
|
|
image: nats:alpine
|
|
|
|
ports:
|
|
|
|
- "4222:4222"
|
|
|
|
- "8222:8222"
|
|
|
|
|
2021-09-13 13:20:43 +02:00
|
|
|
db:
|
|
|
|
container_name: cc-db
|
|
|
|
image: mysql:8.0.22
|
|
|
|
command: ["--default-authentication-plugin=mysql_native_password"]
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
|
|
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
|
|
MYSQL_USER: ${MYSQL_USER}
|
|
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
|
|
volumes:
|
|
|
|
- ${DATADIR}/sql-init:/docker-entrypoint-initdb.d
|
2021-09-19 07:30:55 +02:00
|
|
|
# - ${DATADIR}/sqldata:/var/lib/mysql
|
2021-09-13 13:20:43 +02:00
|
|
|
cap_add:
|
|
|
|
- SYS_NICE
|
2021-05-19 14:27:44 +02:00
|
|
|
|
2021-09-13 13:20:43 +02:00
|
|
|
influxdb:
|
|
|
|
container_name: cc-influxdb
|
|
|
|
image: influxdb
|
|
|
|
command: ["--reporting-disabled"]
|
|
|
|
environment:
|
|
|
|
DOCKER_INFLUXDB_INIT_MODE: setup
|
|
|
|
DOCKER_INFLUXDB_INIT_USERNAME: symfony
|
|
|
|
DOCKER_INFLUXDB_INIT_PASSWORD: ${INFLUXDB_PASSWORD}
|
2021-09-29 16:06:54 +02:00
|
|
|
DOCKER_INFLUXDB_INIT_ORG: ${INFLUXDB_ORG}
|
|
|
|
DOCKER_INFLUXDB_INIT_BUCKET: ${INFLUXDB_BUCKET}
|
2021-09-13 13:20:43 +02:00
|
|
|
DOCKER_INFLUXDB_INIT_RETENTION: 100w
|
|
|
|
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: ${INFLUXDB_ADMIN_TOKEN}
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:${INFLUXDB_PORT}:8086"
|
|
|
|
volumes:
|
|
|
|
- ${DATADIR}/influxdb/data:/var/lib/influxdb2
|
|
|
|
- ${DATADIR}/influxdb/config:/etc/influxdb2
|
2021-08-03 12:03:23 +02:00
|
|
|
|
2021-11-26 13:07:19 +01:00
|
|
|
cc-metric-store:
|
2021-11-29 10:29:56 +01:00
|
|
|
container_name: cc-metric-store
|
2021-11-26 13:07:19 +01:00
|
|
|
build:
|
|
|
|
context: ./cc-metric-store
|
2021-11-29 10:29:56 +01:00
|
|
|
ports:
|
|
|
|
- "8081:8081"
|
|
|
|
volumes:
|
|
|
|
- ${DATADIR}/cc-metric-store:/data
|
2021-11-26 13:07:19 +01:00
|
|
|
depends_on:
|
|
|
|
- nats
|
|
|
|
|
2021-09-13 13:20:43 +02:00
|
|
|
openldap:
|
|
|
|
container_name: cc-ldap
|
|
|
|
image: osixia/openldap:1.5.0
|
|
|
|
command: --copy-service --loglevel debug
|
|
|
|
environment:
|
|
|
|
- LDAP_ADMIN_PASSWORD=${LDAP_ADMIN_PASSWORD}
|
|
|
|
- LDAP_ORGANISATION=${LDAP_ORGANISATION}
|
|
|
|
- LDAP_DOMAIN=${LDAP_DOMAIN}
|
|
|
|
volumes:
|
|
|
|
- ${DATADIR}/ldap:/container/service/slapd/assets/config/bootstrap/ldif/custom
|
2021-05-19 14:27:44 +02:00
|
|
|
|
2021-09-13 13:20:43 +02:00
|
|
|
redis:
|
|
|
|
container_name: cc-redis
|
|
|
|
image: redis
|
|
|
|
command: [
|
|
|
|
"redis-server",
|
|
|
|
"--save", "",
|
2021-09-14 12:42:12 +02:00
|
|
|
"--maxmemory", "2gb",
|
2021-09-13 13:20:43 +02:00
|
|
|
"--maxmemory-policy", "allkeys-lru"]
|
|
|
|
|
|
|
|
php:
|
|
|
|
container_name: cc-php
|
|
|
|
build:
|
|
|
|
context: ./php-fpm
|
|
|
|
args:
|
|
|
|
PHP_XDEBUG_INIT: ${PHP_XDEBUG_INIT}
|
|
|
|
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE}
|
|
|
|
PHP_XDEBUG_CLIENT_PORT: ${PHP_XDEBUG_CLIENT_PORT}
|
|
|
|
PHP_XDEBUG_CLIENT_HOST: ${PHP_XDEBUG_CLIENT_HOST}
|
|
|
|
SYMFONY_CLI_VERSION: 4.23.2
|
|
|
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
|
|
MYSQL_USER: ${MYSQL_USER}
|
|
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
|
|
LDAP_PASSWORD: ${LDAP_ADMIN_PASSWORD}
|
|
|
|
INFLUXDB_PASSWORD: ${INFLUXDB_PASSWORD}
|
|
|
|
INFLUXDB_PORT: ${INFLUXDB_PORT}
|
|
|
|
INFLUXDB_ADMIN_TOKEN: ${INFLUXDB_ADMIN_TOKEN}
|
2021-09-29 16:39:21 +02:00
|
|
|
INFLUXDB_ORG: ${INFLUXDB_ORG}
|
|
|
|
INFLUXDB_BUCKET: ${INFLUXDB_BUCKET}
|
2021-09-30 09:48:37 +02:00
|
|
|
INFLUXDB_SSL: ${INFLUXDB_SSL}
|
2021-09-13 13:20:43 +02:00
|
|
|
APP_ENVIRONMENT: ${APP_ENVIRONMENT}
|
|
|
|
environment:
|
|
|
|
- APP_CLUSTERCOCKPIT_INIT=${APP_CLUSTERCOCKPIT_INIT}
|
|
|
|
- CLUSTERCOCKPIT_BRANCH=${CLUSTERCOCKPIT_BRANCH}
|
2021-09-21 15:07:42 +02:00
|
|
|
- APP_JWT_PUB_KEY=${APP_JWT_PUB_KEY}
|
|
|
|
- APP_JWT_PRIV_KEY=${APP_JWT_PRIV_KEY}
|
2021-09-13 13:20:43 +02:00
|
|
|
volumes:
|
|
|
|
- ${DATADIR}/symfony:/var/www/symfony:cached
|
|
|
|
- ${DATADIR}/job-archive:/var/lib/job-archive:cached
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2021-09-14 13:03:20 +02:00
|
|
|
- influxdb
|
2021-09-13 13:20:43 +02:00
|
|
|
|
|
|
|
nginx:
|
|
|
|
container_name: cc-nginx
|
|
|
|
build:
|
|
|
|
context: ./nginx
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:${NGINX_PORT}:80"
|
|
|
|
depends_on:
|
|
|
|
- php
|
|
|
|
environment:
|
|
|
|
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx/conf.d
|
|
|
|
- NGINX_ENVSUBST_TEMPLATE_DIR=/etc/nginx/templates
|
|
|
|
- NGINX_ENVSUBST_TEMPLATE_SUFFIX=.template
|
|
|
|
volumes:
|
|
|
|
- ${DATADIR}/symfony:/var/www/symfony:cached
|
|
|
|
|
|
|
|
phpmyadmin:
|
|
|
|
container_name: cc-phpmyadmin
|
|
|
|
image: phpmyadmin
|
|
|
|
environment:
|
|
|
|
- PMA_HOST=cc-db
|
|
|
|
- PMA_USER=root
|
|
|
|
- PMA_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:${PHPMYADMIN_PORT}:80"
|