1 Star 0 Fork 678

瞳傲/bbs-go

forked from 码农俱乐部/bbs-go 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
大猫猫 提交于 2024-05-29 17:43 . update docker-compose
services:
mysql:
container_name: bbs-go-mysql
image: 'mysql:8.0'
environment:
TZ: Asia/Shanghai
MYSQL_DATABASE: bbsgo_db
MYSQL_USER: bbsgo
MYSQL_PASSWORD: 123456
MYSQL_ROOT_PASSWORD: 123456
volumes:
- .docker-compose/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d # 初始化脚本件目录, 这个目录中的.sh/sql文件会以字母顺序依次执行
# - ./mysql:/var/lib/mysql # 挂载数据件目录.如果非root账号执行,挂载目录必须是登录账号下目录
# - .docker-compose/mysql/conf.d:/etc/mysql/conf.d # 挂在配置文件目录
restart: always
healthcheck:
test: '/usr/bin/mysql --user=bbsgo --password=123456 bbsgo_db --execute "SHOW TABLES;"'
interval: 3s
timeout: 300s
retries: 100
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
server:
container_name: bbs-go-server
image: mlogclub/bbs-go-server:latest
depends_on:
mysql:
condition: service_healthy
ports:
- 8082:8082
build:
dockerfile: Dockerfile
context: ./server
volumes:
- /data/docker:/data
restart: on-failure
site:
container_name: bbs-go-site
image: mlogclub/bbs-go-site:latest
depends_on:
- server
ports:
- 3000:3000
build:
dockerfile: Dockerfile
context: ./site
restart: on-failure
admin:
container_name: bbs-go-admin
image: mlogclub/bbs-go-admin:latest
depends_on:
- server
ports:
- 8080:80
build:
dockerfile: Dockerfile
context: ./admin
restart: on-failure
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/zzp_ta/bbs-go.git
git@gitee.com:zzp_ta/bbs-go.git
zzp_ta
bbs-go
bbs-go
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385