mirror of https://github.com/ZhongFuCheng3y/austin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
3.2 KiB
128 lines
3.2 KiB
version: '3'
|
|
services:
|
|
austin-mysql:
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
|
MYSQL_ROOT_HOST: '%'
|
|
MYSQL_ROOT_PASSWORD: "root123_A"
|
|
restart: always
|
|
container_name: austin-mysql
|
|
image: mysql:5.7
|
|
hostname: mysql
|
|
command: --init-file /docker-entrypoint-initdb.d/init.sql
|
|
volumes:
|
|
- ./sql/austin.sql:/docker-entrypoint-initdb.d/init.sql
|
|
ports:
|
|
- 23306:3306
|
|
networks:
|
|
- app
|
|
austin-redis:
|
|
image: redis:3.2
|
|
ports:
|
|
- 16379:6379
|
|
restart: always
|
|
container_name: austin-redis
|
|
volumes:
|
|
- ./docker/redis/redis.conf:/usr/local/etc/redis/redis.conf:rw
|
|
command:
|
|
/bin/bash -c "redis-server /usr/local/etc/redis/redis.conf"
|
|
networks:
|
|
- app
|
|
austin-zookeeper:
|
|
image: wurstmeister/zookeeper
|
|
container_name: austin-zookeeper
|
|
volumes:
|
|
- "/etc/localtime:/etc/localtime"
|
|
ports:
|
|
- "2181:2181"
|
|
networks:
|
|
- app
|
|
austin-kafka:
|
|
image: wurstmeister/kafka
|
|
container_name: austin-kafka
|
|
volumes:
|
|
- "/etc/localtime:/etc/localtime"
|
|
environment:
|
|
KAFKA_BROKER_ID: 0
|
|
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://austin-kafka:9092
|
|
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
|
|
KAFKA_ZOOKEEPER_CONNECT: austin-zookeeper:2181
|
|
KAFKA_CREATE_TOPICS: "austinBusiness:1:1,austinRecall:1:1,austinTraceLog:1:1"
|
|
KAFKA_HEAP_OPTS: -Xmx512M -Xms256M
|
|
ports:
|
|
- "9092:9092"
|
|
depends_on:
|
|
- austin-zookeeper
|
|
networks:
|
|
- app
|
|
jobmanager:
|
|
image: flink:latest
|
|
ports:
|
|
- "8081:8081"
|
|
command:
|
|
- jobmanager
|
|
environment:
|
|
- |
|
|
FLINK_PROPERTIES=
|
|
jobmanager.rpc.address: jobmanager
|
|
- SET_CONTAINER_TIMEZONE=true
|
|
- CONTAINER_TIMEZONE=Asia/Shanghai
|
|
- TZ=Asia/Shanghai
|
|
volumes:
|
|
- ./austin-stream/target/austin-stream-0.0.1-SNAPSHOT.jar:/opt/austin-stream-0.0.1-SNAPSHOT.jar:rw
|
|
depends_on:
|
|
- austin-zookeeper
|
|
- austin-kafka
|
|
networks:
|
|
- app
|
|
taskmanager:
|
|
image: flink:latest
|
|
depends_on:
|
|
- jobmanager
|
|
- austin-zookeeper
|
|
- austin-kafka
|
|
command: taskmanager
|
|
environment:
|
|
- |
|
|
FLINK_PROPERTIES=
|
|
jobmanager.rpc.address: jobmanager
|
|
taskmanager.numberOfTaskSlots: 1
|
|
- SET_CONTAINER_TIMEZONE=true
|
|
- CONTAINER_TIMEZONE=Asia/Shanghai
|
|
- TZ=Asia/Shanghai
|
|
networks:
|
|
- app
|
|
austin-xxl-job:
|
|
image: xuxueli/xxl-job-admin:2.3.0
|
|
container_name: austin-xxl-job
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
PARAMS: '--spring.datasource.url=jdbc:mysql://austin-mysql:3306/xxl_job?Unicode=true&characterEncoding=UTF-8 --spring.datasource.username=root --spring.datasource.password=root123_A'
|
|
networks:
|
|
- app
|
|
depends_on:
|
|
- austin-mysql
|
|
austin:
|
|
build:
|
|
context: ./
|
|
ports:
|
|
- 7777:7777
|
|
restart: always
|
|
container_name: austin
|
|
environment:
|
|
- SET_CONTAINER_TIMEZONE=true
|
|
- CONTAINER_TIMEZONE=Asia/Shanghai
|
|
- TZ=Asia/Shanghai
|
|
depends_on:
|
|
- austin-redis
|
|
- austin-mysql
|
|
- austin-zookeeper
|
|
- austin-kafka
|
|
- austin-xxl-job
|
|
networks:
|
|
- app
|
|
networks:
|
|
app:
|