1 Star 0 Fork 758

Jolly/lepus

forked from LepusGroup/lepus 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
sheaven 提交于 2022-05-09 00:36 . 新增 docker-compose 部署方式
version: "3"
services:
mysql:
image: mysql:5.6
environment:
TZ: "Asia/Shanghai"
MYSQL_DATABASE: lepus_db
MYSQL_USER: lepus
MYSQL_PASSWORD: lepuspassword
MYSQL_ROOT_PASSWORD: mypassword
command: --character-set-server=utf8
volumes:
- lepus-mysql:/var/lib/mysql
expose:
- "3306"
restart: always
redis:
image: redis:5
expose:
- "6379"
command: --requirepass "mypassword" --appendonly yes
volumes:
- lepus-redis:/data
restart: always
nsqlookupd:
image: nsqio/nsq
expose:
- 4160:4160
- 4161:4161
command: /nsqlookupd
restart: always
nsqd:
image: nsqio/nsq
expose:
- 4150:4150
- 4151:4151
volumes:
- lepus-nsq:/data
links:
- "nsqlookupd:nsqlookupd"
command: /nsqd --lookupd-tcp-address=nsqlookupd:4160 --broadcast-address=nsqd
depends_on:
- nsqlookupd
restart: always
lepus:
image: lepus
build:
context: .
dockerfile: Dockerfile
environment:
TZ: "Asia/Shanghai"
mysql_user: lepus
mysql_password: lepuspassword
mysql_database: lepus_db
links:
- "mysql:lepus.mysql"
- "redis:lepus.redis"
- "nsqd:lepus.nsq"
depends_on:
- mysql
- redis
- nsqd
restart: always
volumes:
lepus-mysql:
lepus-redis:
lepus-nsq:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/zhlei2004/lepus.git
git@gitee.com:zhlei2004/lepus.git
zhlei2004
lepus
lepus
master

搜索帮助