当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 63

githubgoogle/PPGo_Job
暂停

forked from georgehao/PPGo_Job
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 1020 Bytes
一键复制 编辑 原始数据 按行查看 历史
迟龙恩 提交于 2019-02-12 16:35 . docker 化
version: '2'
services:
web:
build:
context: .
dockerfile: .docker/web/Dockerfile
# ports from container exposed to the docker machine and the guest machine
ports:
# 80 on the host, 8080 on the guest. Websever listens on 8080
- "8080:8080" # http
# - "443:443" # https
# file with environment declarations for the container
env_file:
- .docker/web/.env
# Link to containers in another service
depends_on:
- db
command: ["./wait-for-it.sh", "db:3306", "--", "./PPGo_Job"]
# sync workspace folder with /go
db:
image: mysql:5.7
ports:
- "3306:3306"
environment:
MYSQL_USER: gotest
MYSQL_PASSWORD: gotest
MYSQL_ROOT_PASSWORD: gotest
MYSQL_DATABASE: local_gotest
# sync folders. MySQL data is stored outside container so that rebuilding doesn't clear db.
# folder is at workspace root.
volumes:
- .docker/_local_mysql_data:/var/lib/mysql
- .docker/db:/docker-entrypoint-initdb.d
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/LeslieAhn/PPGo_Job.git
[email protected]:LeslieAhn/PPGo_Job.git
LeslieAhn
PPGo_Job
PPGo_Job
master

搜索帮助