-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
version: "3.3" | ||
services: | ||
database: | ||
image: liuyh73/moneydodo_db:latest | ||
container_name: moneydodo_db | ||
restart: always | ||
ports: | ||
- "3306:3306" | ||
# volumes: | ||
# - data:/mysql | ||
# environment: | ||
# MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db_root_password | ||
# MYSQL_DATABASE: starwars | ||
# MYSQL_USER: starwars | ||
# MYSQL_PASSWORD_FILE: /run/secrets/db_user_password | ||
# secrets: | ||
# - db_root_password | ||
# - db_user_password | ||
server: | ||
depends_on: | ||
- database | ||
image: liuyh73/moneydodo_main:latest | ||
container_name: moneydodo_main | ||
restart: always | ||
ports: | ||
- "8998:8998" | ||
external_links: | ||
- moneydodo_db:moneydodo_db | ||
client: | ||
depends_on: | ||
- database | ||
- server | ||
image: liuyh73/moneydodo_web:latest | ||
container_name: moneydodo_web | ||
restart: always | ||
ports: | ||
- "80:80" | ||
external_links: | ||
- moneydodo_main:moneydodo_main | ||
# secrets: | ||
# db_user_password: | ||
# file: conf/db_user_password.txt | ||
# db_root_password: | ||
# file: conf/db_root_password.txt | ||
|
||
# volumes: | ||
# data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#源镜像 | ||
FROM golang:1.12 | ||
#设置镜像工作目录 | ||
WORKDIR $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
#将宿主机的go工程代码加入到docker容器中 | ||
ADD . $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
# 安装依赖包 | ||
RUN go get ./... | ||
#暴露端口 | ||
EXPOSE 8001 | ||
#最终运行docker的命令 | ||
ENTRYPOINT ["go", "run", "./authentication/cmd/main.go"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#源镜像 | ||
FROM golang:1.12 | ||
#设置镜像工作目录 | ||
WORKDIR $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
#将宿主机的go工程代码加入到docker容器中 | ||
ADD . $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
# 安装依赖包 | ||
RUN go get ./... | ||
#暴露端口 | ||
EXPOSE 8002 | ||
#最终运行docker的命令 | ||
ENTRYPOINT ["go", "run", "./certify/cmd/main.go"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#源镜像 | ||
FROM golang:1.12 | ||
#设置镜像工作目录 | ||
WORKDIR $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
#将宿主机的go工程代码加入到docker容器中 | ||
ADD . $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
# 安装依赖包 | ||
RUN go get ./... | ||
#暴露端口 | ||
EXPOSE 8008 | ||
#最终运行docker的命令 | ||
ENTRYPOINT ["go", "run", "./charge/cmd/main.go"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#源镜像 | ||
FROM golang:1.12 | ||
#设置镜像工作目录 | ||
WORKDIR $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
#将宿主机的go工程代码加入到docker容器中 | ||
ADD . $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
# 安装依赖包 | ||
RUN go get ./... | ||
#暴露端口 | ||
EXPOSE 8006 | ||
#最终运行docker的命令 | ||
ENTRYPOINT ["go", "run", "./comment/cmd/main.go"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#源镜像 | ||
FROM golang:1.12 | ||
#设置镜像工作目录 | ||
WORKDIR $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
#将宿主机的go工程代码加入到docker容器中 | ||
ADD . $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
# 安装依赖包 | ||
RUN go get ./... | ||
#暴露端口 | ||
EXPOSE 8007 | ||
#最终运行docker的命令 | ||
ENTRYPOINT ["go", "run", "./deal/cmd/main.go"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#源镜像 | ||
FROM golang:1.12 | ||
#设置镜像工作目录 | ||
WORKDIR $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
#将宿主机的go工程代码加入到docker容器中 | ||
ADD . $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
# 安装依赖包 | ||
RUN go get ./... | ||
#暴露端口 | ||
EXPOSE 8009 | ||
#最终运行docker的命令 | ||
ENTRYPOINT ["go", "run", "./review/cmd/main.go"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#源镜像 | ||
FROM golang:1.12 | ||
#设置镜像工作目录 | ||
WORKDIR $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
#将宿主机的go工程代码加入到docker容器中 | ||
ADD . $GOPATH/src/github.com/money-hub/MoneyDodo.service | ||
# 安装依赖包 | ||
RUN go get ./... | ||
#暴露端口 | ||
EXPOSE 8004 | ||
#最终运行docker的命令 | ||
ENTRYPOINT ["go", "run", "./task/cmd/main.go"] |