修正docker-compose时区
This commit is contained in:
parent
6730204aa3
commit
34c1ba777f
@ -26,6 +26,8 @@ services:
|
|||||||
tyapi_zookeeper:
|
tyapi_zookeeper:
|
||||||
image: wurstmeister/zookeeper
|
image: wurstmeister/zookeeper
|
||||||
container_name: tyapi_zookeeper
|
container_name: tyapi_zookeeper
|
||||||
|
environment:
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
networks:
|
networks:
|
||||||
- tyapi_network
|
- tyapi_network
|
||||||
restart: always
|
restart: always
|
||||||
@ -34,6 +36,7 @@ services:
|
|||||||
image: wurstmeister/kafka
|
image: wurstmeister/kafka
|
||||||
container_name: tyapi_kafka
|
container_name: tyapi_kafka
|
||||||
environment:
|
environment:
|
||||||
|
TZ: Asia/Shanghai
|
||||||
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
|
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
|
||||||
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://tyapi_kafka:9092
|
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://tyapi_kafka:9092
|
||||||
KAFKA_ZOOKEEPER_CONNECT: tyapi_zookeeper:2181
|
KAFKA_ZOOKEEPER_CONNECT: tyapi_zookeeper:2181
|
||||||
@ -46,6 +49,8 @@ services:
|
|||||||
tyapi_redis:
|
tyapi_redis:
|
||||||
image: redis:7.4.0
|
image: redis:7.4.0
|
||||||
container_name: tyapi_redis
|
container_name: tyapi_redis
|
||||||
|
environment:
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
ports:
|
ports:
|
||||||
- "11002:6379"
|
- "11002:6379"
|
||||||
networks:
|
networks:
|
||||||
@ -56,6 +61,7 @@ services:
|
|||||||
image: mysql:8.0.34
|
image: mysql:8.0.34
|
||||||
container_name: tyapi_mysql
|
container_name: tyapi_mysql
|
||||||
environment:
|
environment:
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
- MYSQL_ROOT_PASSWORD=rootpassword
|
- MYSQL_ROOT_PASSWORD=rootpassword
|
||||||
- MYSQL_DATABASE=tianyuanapi
|
- MYSQL_DATABASE=tianyuanapi
|
||||||
- MYSQL_USER=tianyuanapi
|
- MYSQL_USER=tianyuanapi
|
||||||
@ -77,6 +83,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "10001:10001"
|
- "10001:10001"
|
||||||
environment:
|
environment:
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
- ENV=production
|
- ENV=production
|
||||||
depends_on:
|
depends_on:
|
||||||
- tyapi_etcd
|
- tyapi_etcd
|
||||||
@ -96,6 +103,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "10002:10002"
|
- "10002:10002"
|
||||||
environment:
|
environment:
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
- ENV=production
|
- ENV=production
|
||||||
depends_on:
|
depends_on:
|
||||||
- tyapi_etcd
|
- tyapi_etcd
|
||||||
@ -115,6 +123,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "10003:10003"
|
- "10003:10003"
|
||||||
environment:
|
environment:
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
- ENV=production
|
- ENV=production
|
||||||
depends_on:
|
depends_on:
|
||||||
- tyapi_etcd
|
- tyapi_etcd
|
||||||
@ -136,6 +145,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "10004:10004"
|
- "10004:10004"
|
||||||
environment:
|
environment:
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
- ENV=production
|
- ENV=production
|
||||||
depends_on:
|
depends_on:
|
||||||
- tyapi_etcd
|
- tyapi_etcd
|
||||||
@ -150,6 +160,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: ./apps/mqs/Dockerfile
|
dockerfile: ./apps/mqs/Dockerfile
|
||||||
environment:
|
environment:
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
- ENV=production
|
- ENV=production
|
||||||
depends_on:
|
depends_on:
|
||||||
- tyapi_kafka
|
- tyapi_kafka
|
||||||
@ -167,6 +178,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: ./apps/sentinel/Dockerfile
|
dockerfile: ./apps/sentinel/Dockerfile
|
||||||
environment:
|
environment:
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
- ENV=production
|
- ENV=production
|
||||||
depends_on:
|
depends_on:
|
||||||
- tyapi_redis
|
- tyapi_redis
|
||||||
@ -182,6 +194,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: ./apps/user/Dockerfile
|
dockerfile: ./apps/user/Dockerfile
|
||||||
environment:
|
environment:
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
- ENV=production
|
- ENV=production
|
||||||
depends_on:
|
depends_on:
|
||||||
- tyapi_mysql
|
- tyapi_mysql
|
||||||
|
Loading…
Reference in New Issue
Block a user