services: n8n: image: n8n/n8n build: context: . dockerfile: Dockerfile restart: no ports: - "5678:5678" environment: - N8N_FEATURE_FLAG_PROJECTS=true - N8N_PROJECT_MANAGEMENT_STORAGE_TYPE=filesystem - N8N_PROJECT_MANAGEMENT_STORAGE_PATH=/home/node/.n8n/projects - NODE_FUNCTION_ALLOW_BUILTIN=* - NODE_FUNCTION_ALLOW_EXTERNAL=node-opcua,redis - REDIS_HOST=dev.re.promuc.local - REDIS_PORT=6379 - dbhost=dev.re.promuc.local - dbname=promuc - dbpassword=changeme - dbuser=postgres - dbport=5432 - mqtthost=dev.re.promuc.local - mqttport=1883 - mqttpassword=user - mqttuser=user - OPChost=dev.re.promuc.local - OPCport=4840 - OPCobjects=dev_re_promuc_local - OWEN_host=10.186.6.31 - OWEN_port=4840 - PromTVinfo=http://10.186.6.21/device/info/all - PGRST_HOST=dev.re.promuc.local - PGRST_PORT=3000 - N8N_CUSTOM_EXTENSIONS=/home/node/.n8n/custom/nodes - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true - N8N_RUNNERS_ENABLED=true - N8N_DIAGNOSTICS_ENABLED=false - N8N_HIDE_USAGE_SURVEY=true volumes: - ./n8n_data:/home/node/.n8n - ./custom_nodes_for_n8n-master/dist/nodes:/home/node/.n8n/custom/nodes extra_hosts: - "dev.re.promuc.local:10.186.1.203" zookeeper: image: confluentinc/cp-zookeeper:7.2.1 hostname: zookeeper container_name: zookeeper ports: - "2181:2181" environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 kafka: image: confluentinc/cp-server:7.2.1 hostname: kafka restart: on-failure container_name: kafka depends_on: - zookeeper ports: - "9092:9092" - "9997:9997" environment: KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181' KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0 KAFKA_CONFLUENT_LICENSE_TOPIC_REPLICATION_FACTOR: 1 KAFKA_CONFLUENT_BALANCER_TOPIC_REPLICATION_FACTOR: 1 KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1 KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1 KAFKA_JMX_PORT: 9997 KAFKA_JMX_HOSTNAME: kafka kafka-ui: container_name: kafka-ui image: provectuslabs/kafka-ui:latest ports: - 8082:8080 environment: DYNAMIC_CONFIG_ENABLED: true KAFKA_CLUSTERS_0_NAME: local KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:29092 depends_on: - kafka kibana: image: kibana:7.16.1 container_name: kib ports: - "5601:5601" depends_on: - elasticsearch logging: driver: none schema-registry: image: confluentinc/cp-schema-registry:7.2.1 hostname: schema-registry container_name: schema-registry depends_on: - zookeeper - kafka ports: - "8081:8081" environment: SCHEMA_REGISTRY_HOST_NAME: schema-registry SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: 'PLAINTEXT://kafka:29092' SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081 SCHEMA_REGISTRY_ADVERTISED_LISTENERS: 'PLAINTEXT://schema-registry:8081' elasticsearch: image: elasticsearch:7.16.1 container_name: elasticsearch environment: discovery.type: single-node ES_JAVA_OPTS: "-Xms512m -Xmx512m" ports: - "9200:9200" - "9300:9300" healthcheck: test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"] interval: 10s timeout: 10s retries: 3 logging: driver: none