加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
xman 提交于 2021-04-13 20:48 . no message
version: '3'
#docker network create my_net_work
services:
web:
container_name: web
image: xman/web2021:v1
ports:
- "80:80"
- "9500-9510:9500-9510"
#depends_on:
# - redis
# - mysql
volumes:
- /Users/xman/wwwroot/:/var/www/html
- ./nginx:/etc/nginx
privileged: true
restart: always
redis:
container_name: redis
image: redis:latest
command: redis-server --requirepass 123456
ports:
- "6378:6379"
privileged: true
restart: always
golang:
container_name: go
image: golang:latest
ports:
- "8088:8088"
#depends_on:
# - redis
# - mysql
volumes:
- /Users/xman/gowork:/go
tty: true
restart: always
environment:
GO111MODULE: "on"
GOPROXY: "https://mirrors.aliyun.com/goproxy,direct"
#docker run -p 3308:3306 --name mysql --network xmanweb_default -v /Users/xman/xmanweb/mysql//logs:/var/log/mysql -v /Users/xman/xmanweb/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化