加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
杨浩 提交于 2022-11-03 16:46 . zrpc
version: '3'
######## app下api+rpc , Before starting this project, start the environment that the project depends on docker-compose-env.yml #######
services:
#前端网关nginx-gateay (只代理looklook,admin-api不在这里做代理)
# Front-end gateway nginx-gateway (Only agent looklook,admin-api Do not be an agent here)
nginx-gateway:
image: nginx:1.21.5
container_name: nginx-gateway1
restart: always
privileged: true
environment:
- TZ=Asia/Shanghai
ports:
- 8888:5555
volumes:
- ./deploy/nginx/conf.d:/etc/nginx/conf.d
- ./logs/nginx/log:/var/log/nginx
networks:
- gozeroadmin_net
depends_on:
- gozeroadmin
#前端api + 业务rpc - Front-end API + business RPC
gozeroadmin:
image: lyumikael/gomodd:v1.0.0 # if you "macOs intel" or "linux amd"
#image: lyumikael/go-modd-env:v1.0.0 # if you macOs m1
container_name: gozeroadmin
environment:
# 时区上海 - Timezone Shanghai
TZ: Asia/Shanghai
GOPROXY: https://goproxy.cn,direct
working_dir: /go/gozeroadmin
volumes:
- .:/go/gozeroadmin
privileged: true
restart: always
networks:
- gozeroadmin_net
networks:
gozeroadmin_net:
external: true
# driver: bridge
# ipam:
# config:
# - subnet: 172.20.0.0/16
# gateway: 172.20.0.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化