1 Star 0 Fork 674

Tomorrow/bbs-go

forked from 码农俱乐部/bbs-go 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
大猫猫 提交于 2022-11-25 10:38 . .
version: '3.8'
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
- ./server/bbs-go.docker.yaml:/app/bbs-go.docker.yaml
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
volumes:
- ./site/nuxt.config.docker.js:/app/bbs-go/nuxt.config.js
restart: on-failure
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/todayandyou/bbs-go.git
git@gitee.com:todayandyou/bbs-go.git
todayandyou
bbs-go
bbs-go
master

搜索帮助