docker-compose update

pull/4/head
Away 3 years ago
parent 73f41e5f07
commit b0482da557

@ -8,7 +8,7 @@ services:
- 3306:3306 - 3306:3306
container_name: mysql container_name: mysql
volumes: volumes:
- /home/mysql/data:/var/lib/mysql - ./components/mysql/data:/var/lib/mysql
- /etc/localtime:/etc/localtime - /etc/localtime:/etc/localtime
environment: environment:
MYSQL_ROOT_PASSWORD: openIM MYSQL_ROOT_PASSWORD: openIM
@ -20,7 +20,7 @@ services:
- 27017:27017 - 27017:27017
container_name: mongo container_name: mongo
volumes: volumes:
- /home/mongodb/data:/data/db - ./components/mongodb/data:/data/db
environment: environment:
TZ: Asia/Shanghai TZ: Asia/Shanghai
restart: always restart: always
@ -31,8 +31,8 @@ services:
- 6379:6379 - 6379:6379
container_name: redis container_name: redis
volumes: volumes:
- /home/redis/data:/data - ./components/redis/data:/data
- /home/redis/config/redis.conf:/usr/local/redis/config/redis.conf - ./components/redis/config/redis.conf:/usr/local/redis/config/redis.conf
environment: environment:
TZ: Asia/Shanghai TZ: Asia/Shanghai
restart: always restart: always
@ -62,11 +62,12 @@ services:
environment: environment:
TZ: Asia/Shanghai TZ: Asia/Shanghai
KAFKA_BROKER_ID: 0 KAFKA_BROKER_ID: 0
KAFKA_ZOOKEEPER_CONNECT: 127.0.0.1:2181 KAFKA_ZOOKEEPER_CONNECT: 127.0.0:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:9092 KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092 KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
depends_on: depends_on:
- zookeeper - zookeeper
network_mode: "host"
etcd: etcd:
image: quay.io/coreos/etcd image: quay.io/coreos/etcd
@ -91,8 +92,8 @@ services:
# - 17778:17778 # - 17778:17778
# container_name: open-im-server # container_name: open-im-server
# volumes: # volumes:
# - ./logs:/home/Open-IM-Server/logs # - ./logs:/Open-IM-Server/logs
# - ./config/config.yaml:/home/Open-IM-Server/config/config.yaml # - ./config/config.yaml:/Open-IM-Server/config/config.yaml
# restart: always # restart: always
# build: # build:
# context: . # context: .
@ -112,8 +113,8 @@ services:
- 17778:17778 - 17778:17778
container_name: open-im-server container_name: open-im-server
volumes: volumes:
- ./logs:/home/Open-IM-Server/logs - ./logs:/Open-IM-Server/logs
- ./config/config.yaml:/home/Open-IM-Server/config/config.yaml - ./config/config.yaml:/Open-IM-Server/config/config.yaml
restart: always restart: always
depends_on: depends_on:
- kafka - kafka
@ -121,3 +122,9 @@ services:
- mongodb - mongodb
- redis - redis
- etcd - etcd
network_mode: "host"
logging:
driver: json-file
options:
max-size: "1g"
max-file: "2"

Loading…
Cancel
Save