2022-09-08 06:20:30 +00:00
|
|
|
version: "2.2"
|
|
|
|
|
2022-10-04 19:17:04 +00:00
|
|
|
x-superset-image: &superset-image apache/superset:${TAG:-latest-dev}
|
|
|
|
x-superset-depends-on: &superset-depends-on
|
|
|
|
- db
|
|
|
|
- redis_superset
|
|
|
|
x-superset-volumes: &superset-volumes
|
|
|
|
# /app/pythonpath_docker will be appended to the PYTHONPATH in the final container
|
|
|
|
- ./docker/superset:/app/docker
|
|
|
|
- superset_home:/app/superset_home
|
2022-09-08 06:20:30 +00:00
|
|
|
|
2022-09-02 21:30:45 +00:00
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: pathogen/monolith:latest
|
2022-09-21 11:09:18 +00:00
|
|
|
container_name: monolith
|
2022-09-02 21:30:45 +00:00
|
|
|
build: ./docker
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
volumes_from:
|
2022-09-04 12:47:32 +00:00
|
|
|
- tmp
|
|
|
|
depends_on:
|
2022-09-16 16:09:49 +00:00
|
|
|
broker:
|
|
|
|
condition: service_started
|
|
|
|
kafka:
|
|
|
|
condition: service_healthy
|
|
|
|
tmp:
|
|
|
|
condition: service_started
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
2022-09-08 06:20:30 +00:00
|
|
|
# - db
|
2022-09-04 18:44:25 +00:00
|
|
|
|
2022-09-07 06:20:30 +00:00
|
|
|
threshold:
|
|
|
|
image: pathogen/threshold:latest
|
2022-09-21 11:09:18 +00:00
|
|
|
container_name: threshold
|
2022-09-07 06:20:30 +00:00
|
|
|
build: ./legacy/docker
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
|
|
|
- ${THRESHOLD_CONFIG_DIR}:/code/legacy/conf/live
|
|
|
|
#- ${THRESHOLD_TEMPLATE_DIR}:/code/conf/templates
|
|
|
|
- ${THRESHOLD_CERT_DIR}:/code/legacy/conf/cert
|
|
|
|
ports:
|
|
|
|
- "${THRESHOLD_LISTENER_PORT}:${THRESHOLD_LISTENER_PORT}"
|
|
|
|
- "${THRESHOLD_RELAY_PORT}:${THRESHOLD_RELAY_PORT}"
|
|
|
|
- "${THRESHOLD_API_PORT}:${THRESHOLD_API_PORT}"
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
# for development
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
volumes_from:
|
|
|
|
- tmp
|
2022-09-12 07:27:13 +00:00
|
|
|
depends_on:
|
2022-09-16 16:09:49 +00:00
|
|
|
tmp:
|
|
|
|
condition: service_started
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
2022-09-04 12:47:32 +00:00
|
|
|
|
2022-09-16 16:45:24 +00:00
|
|
|
# db:
|
2022-09-12 07:43:18 +00:00
|
|
|
#image: pathogen/manticore:kibana
|
2022-09-16 16:45:24 +00:00
|
|
|
# image: manticoresearch/manticore:latest
|
2022-09-12 07:43:18 +00:00
|
|
|
#build:
|
|
|
|
# context: ./docker/manticore
|
|
|
|
# args:
|
|
|
|
# DEV: 1
|
2022-09-16 16:45:24 +00:00
|
|
|
# restart: always
|
|
|
|
|
2022-10-04 19:17:04 +00:00
|
|
|
# turnilo:
|
|
|
|
# container_name: turnilo
|
|
|
|
# image: uchhatre/turnilo:latest
|
|
|
|
# ports:
|
|
|
|
# - 9093:9090
|
|
|
|
# environment:
|
|
|
|
# - DRUID_BROKER_URL=http://broker:8082
|
|
|
|
# - CONFIG_FILE=/config.yaml
|
|
|
|
# volumes:
|
|
|
|
# - ${PORTAINER_GIT_DIR}/docker/turnilo.yaml:/config.yaml
|
|
|
|
# depends_on:
|
|
|
|
# - broker
|
2022-09-16 16:45:24 +00:00
|
|
|
|
2022-10-04 19:17:04 +00:00
|
|
|
# metabase:
|
|
|
|
# container_name: metabase
|
|
|
|
# image: metabase/metabase:latest
|
|
|
|
# ports:
|
|
|
|
# - 3096:3000
|
|
|
|
# environment:
|
|
|
|
# JAVA_OPTS: -Xmx1g
|
|
|
|
# MB_DB_TYPE: postgres
|
|
|
|
# MB_DB_DBNAME: metabase
|
|
|
|
# MB_DB_PORT: 5432
|
|
|
|
# MB_DB_USER: druid
|
|
|
|
# MB_DB_PASS: FoolishPassword
|
|
|
|
# MB_DB_HOST: postgres
|
|
|
|
# depends_on:
|
|
|
|
# - broker
|
|
|
|
|
|
|
|
redis_superset:
|
|
|
|
image: redis:latest
|
|
|
|
container_name: superset_cache
|
|
|
|
restart: unless-stopped
|
2022-09-27 07:30:28 +00:00
|
|
|
volumes:
|
2022-10-04 19:17:04 +00:00
|
|
|
- redis:/data
|
|
|
|
db:
|
|
|
|
env_file: docker/.env-non-dev
|
|
|
|
image: postgres:10
|
|
|
|
container_name: superset_db
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- db_home:/var/lib/postgresql/data
|
2022-09-13 21:17:32 +00:00
|
|
|
|
2022-10-04 19:17:04 +00:00
|
|
|
superset:
|
|
|
|
env_file: docker/.env-non-dev
|
|
|
|
image: *superset-image
|
|
|
|
container_name: superset_app
|
|
|
|
command: ["/app/docker/docker-bootstrap.sh", "app-gunicorn"]
|
|
|
|
user: "root"
|
|
|
|
restart: unless-stopped
|
2022-09-13 21:17:32 +00:00
|
|
|
ports:
|
2022-10-04 19:17:04 +00:00
|
|
|
- 8088:8088
|
|
|
|
depends_on: *superset-depends-on
|
|
|
|
volumes: *superset-volumes
|
|
|
|
|
|
|
|
superset-init:
|
|
|
|
image: *superset-image
|
|
|
|
container_name: superset_init
|
|
|
|
command: ["/app/docker/docker-init.sh"]
|
|
|
|
env_file: docker/.env-non-dev
|
|
|
|
depends_on: *superset-depends-on
|
|
|
|
user: "root"
|
|
|
|
volumes: *superset-volumes
|
|
|
|
|
|
|
|
superset-worker:
|
|
|
|
image: *superset-image
|
|
|
|
container_name: superset_worker
|
|
|
|
command: ["/app/docker/docker-bootstrap.sh", "worker"]
|
|
|
|
env_file: docker/.env-non-dev
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on: *superset-depends-on
|
|
|
|
user: "root"
|
|
|
|
volumes: *superset-volumes
|
|
|
|
|
|
|
|
superset-worker-beat:
|
|
|
|
image: *superset-image
|
|
|
|
container_name: superset_worker_beat
|
|
|
|
command: ["/app/docker/docker-bootstrap.sh", "beat"]
|
|
|
|
env_file: docker/.env-non-dev
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on: *superset-depends-on
|
|
|
|
user: "root"
|
|
|
|
volumes: *superset-volumes
|
2022-09-13 21:17:32 +00:00
|
|
|
|
2022-09-08 06:20:30 +00:00
|
|
|
postgres:
|
|
|
|
container_name: postgres
|
|
|
|
image: postgres:latest
|
2022-09-04 12:47:32 +00:00
|
|
|
volumes:
|
2022-09-08 06:20:30 +00:00
|
|
|
- metadata_data:/var/lib/postgresql/data
|
|
|
|
environment:
|
2022-09-21 20:11:13 +00:00
|
|
|
POSTGRES_PASSWORD: FoolishPassword
|
|
|
|
POSTGRES_USER: druid
|
|
|
|
POSTGRES_DB: druid
|
2022-09-08 06:20:30 +00:00
|
|
|
|
|
|
|
# Need 3.5 or later for container nodes
|
|
|
|
zookeeper:
|
|
|
|
container_name: zookeeper
|
|
|
|
image: zookeeper:3.5
|
2022-09-04 20:29:00 +00:00
|
|
|
ports:
|
2022-09-08 06:20:30 +00:00
|
|
|
- "2181:2181"
|
2022-09-04 12:47:32 +00:00
|
|
|
environment:
|
2022-09-08 06:20:30 +00:00
|
|
|
- ZOO_MY_ID=1
|
|
|
|
|
2022-09-13 21:17:32 +00:00
|
|
|
kafka:
|
2022-09-21 20:11:13 +00:00
|
|
|
image: wurstmeister/kafka:latest
|
2022-09-21 11:09:18 +00:00
|
|
|
container_name: kafka
|
2022-09-13 21:17:32 +00:00
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
ports:
|
|
|
|
- 9092:9092
|
2022-09-21 20:11:13 +00:00
|
|
|
- 29092:29092
|
2022-09-13 21:17:32 +00:00
|
|
|
environment:
|
|
|
|
KAFKA_BROKER_ID: 1
|
|
|
|
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
|
2022-09-21 20:11:13 +00:00
|
|
|
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
|
|
|
|
KAFKA_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
|
|
|
|
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
|
2022-09-13 21:17:32 +00:00
|
|
|
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
|
|
|
|
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
2022-09-21 20:11:13 +00:00
|
|
|
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
|
|
|
|
KAFKA_MESSAGE_MAX_BYTES: 2000000
|
2022-09-30 06:22:22 +00:00
|
|
|
#KAFKA_HEAP_OPTS: -Xmx2g
|
2022-09-16 16:09:49 +00:00
|
|
|
healthcheck:
|
2022-09-21 11:48:54 +00:00
|
|
|
test: ["CMD", "kafka-topics.sh", "--list", "--bootstrap-server", "kafka:9092"]
|
2022-09-16 16:09:49 +00:00
|
|
|
start_period: 15s
|
2022-09-30 06:22:22 +00:00
|
|
|
interval: 30s
|
2022-09-21 11:48:54 +00:00
|
|
|
timeout: 30s
|
|
|
|
retries: 45
|
2022-09-13 21:17:32 +00:00
|
|
|
|
2022-09-08 06:20:30 +00:00
|
|
|
coordinator:
|
|
|
|
image: apache/druid:0.23.0
|
|
|
|
container_name: coordinator
|
|
|
|
volumes:
|
|
|
|
- druid_shared:/opt/shared
|
|
|
|
- coordinator_var:/opt/druid/var
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
- postgres
|
|
|
|
ports:
|
|
|
|
- "8081:8081"
|
|
|
|
command:
|
|
|
|
- coordinator
|
|
|
|
env_file:
|
|
|
|
- environment
|
|
|
|
|
|
|
|
broker:
|
|
|
|
image: apache/druid:0.23.0
|
|
|
|
container_name: broker
|
2022-09-04 12:47:32 +00:00
|
|
|
volumes:
|
2022-09-08 06:20:30 +00:00
|
|
|
- broker_var:/opt/druid/var
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
- postgres
|
|
|
|
- coordinator
|
|
|
|
ports:
|
|
|
|
- "8082:8082"
|
|
|
|
command:
|
|
|
|
- broker
|
|
|
|
env_file:
|
|
|
|
- environment
|
|
|
|
|
|
|
|
historical:
|
|
|
|
image: apache/druid:0.23.0
|
|
|
|
container_name: historical
|
|
|
|
volumes:
|
|
|
|
- druid_shared:/opt/shared
|
|
|
|
- historical_var:/opt/druid/var
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
- postgres
|
|
|
|
- coordinator
|
|
|
|
ports:
|
|
|
|
- "8083:8083"
|
|
|
|
command:
|
|
|
|
- historical
|
|
|
|
env_file:
|
|
|
|
- environment
|
|
|
|
|
|
|
|
middlemanager:
|
|
|
|
image: apache/druid:0.23.0
|
|
|
|
container_name: middlemanager
|
|
|
|
volumes:
|
|
|
|
- druid_shared:/opt/shared
|
|
|
|
- middle_var:/opt/druid/var
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
- postgres
|
|
|
|
- coordinator
|
|
|
|
ports:
|
|
|
|
- "8091:8091"
|
|
|
|
- "8100-8105:8100-8105"
|
|
|
|
command:
|
|
|
|
- middleManager
|
|
|
|
env_file:
|
|
|
|
- environment
|
|
|
|
|
|
|
|
router:
|
|
|
|
image: apache/druid:0.23.0
|
|
|
|
container_name: router
|
|
|
|
volumes:
|
|
|
|
- router_var:/opt/druid/var
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
- postgres
|
|
|
|
- coordinator
|
|
|
|
ports:
|
|
|
|
- "8888:8888"
|
|
|
|
command:
|
|
|
|
- router
|
|
|
|
env_file:
|
|
|
|
- environment
|
|
|
|
|
|
|
|
# db:
|
|
|
|
# #image: pathogen/manticore:kibana
|
|
|
|
# image: manticoresearch/manticore:dev
|
|
|
|
# #build:
|
|
|
|
# # context: ./docker/manticore
|
|
|
|
# # args:
|
|
|
|
# # DEV: 1
|
|
|
|
# restart: always
|
|
|
|
# ports:
|
|
|
|
# - 9308
|
|
|
|
# - 9312
|
|
|
|
# - 9306
|
|
|
|
# ulimits:
|
|
|
|
# nproc: 65535
|
|
|
|
# nofile:
|
|
|
|
# soft: 65535
|
|
|
|
# hard: 65535
|
|
|
|
# memlock:
|
|
|
|
# soft: -1
|
|
|
|
# hard: -1
|
|
|
|
# environment:
|
|
|
|
# - MCL=1
|
|
|
|
# volumes:
|
|
|
|
# - ./docker/data:/var/lib/manticore
|
|
|
|
# - ./docker/manticore.conf:/etc/manticoresearch/manticore.conf
|
2022-09-02 21:30:45 +00:00
|
|
|
|
|
|
|
tmp:
|
|
|
|
image: busybox
|
|
|
|
command: chmod -R 777 /var/run/redis
|
|
|
|
volumes:
|
|
|
|
- /var/run/redis
|
|
|
|
|
|
|
|
redis:
|
2022-09-04 18:44:25 +00:00
|
|
|
image: redis
|
|
|
|
command: redis-server /etc/redis.conf
|
2022-09-07 06:20:30 +00:00
|
|
|
ulimits:
|
|
|
|
nproc: 65535
|
|
|
|
nofile:
|
|
|
|
soft: 65535
|
|
|
|
hard: 65535
|
2022-09-04 18:44:25 +00:00
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
|
2022-10-04 19:26:58 +00:00
|
|
|
- redis_data:/data
|
2022-09-04 18:44:25 +00:00
|
|
|
volumes_from:
|
|
|
|
- tmp
|
2022-09-16 16:09:49 +00:00
|
|
|
healthcheck:
|
|
|
|
test: "redis-cli -s /var/run/redis/redis.sock ping"
|
|
|
|
interval: 2s
|
|
|
|
timeout: 2s
|
|
|
|
retries: 15
|
2022-09-02 21:30:45 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
2022-10-04 19:17:04 +00:00
|
|
|
name: pathogen
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
superset_home:
|
|
|
|
external: false
|
|
|
|
db_home:
|
|
|
|
external: false
|
2022-10-04 19:26:58 +00:00
|
|
|
redis_superset:
|
2022-10-04 19:17:04 +00:00
|
|
|
external: false
|
2022-10-04 19:26:58 +00:00
|
|
|
redis_data: {}
|
2022-10-04 19:17:04 +00:00
|
|
|
metadata_data: {}
|
|
|
|
middle_var: {}
|
|
|
|
historical_var: {}
|
|
|
|
broker_var: {}
|
|
|
|
coordinator_var: {}
|
|
|
|
router_var: {}
|
|
|
|
druid_shared: {}
|