go-chat.使用Go基于WebSocket开发的web聊天应用。单聊,群聊。文字,图片,语音,视频消息,屏幕共享,剪切板图片,基于WebRTC的P2P语音通话,视频聊天。
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.
 
 
 

56 lines
1.4 KiB

version: '3'
services:
mysql8:
image: mysql:8.0
container_name: mysql8
restart: always
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: thepswdforroot
MYSQL_DATABASE: go-chat-message
MYSQL_USER: gochat
MYSQL_PASSWORD: thepswdforgochat
ports:
- 3306:3306
command:
# 将mysql8.0默认密码策略 修改为 原先 策略 (mysql8.0对其默认策略做了更改 会导致密码无法匹配)
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1
nginx:
image: nginx:latest
container_name: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
links:
- gochat
- gochat1
depends_on:
- gochat
- gochat1
gochat:
image: konenet/gochat:1.0
container_name: gochat
restart: always
ports:
- 8888:8888
links:
- mysql8
depends_on:
- mysql8
gochat1:
image: konenet/gochat:1.0
restart: always
container_name: gochat1
links:
- mysql8
depends_on:
- mysql8