1 Star 1 Fork 4

lhtzbj12/netcore_docker_compose

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose-shell.yml 956 Bytes
一键复制 编辑 原始数据 按行查看 历史
# 这个版本需要每一个工程配置一个Dockerfile,build时,
version: '3.7'
services:
api:
#depends_on:
# - elasticsearch
# - redis
build:
context: ./DockerCompose.Sample.Api
# dockerfile: Dockerfile
# target:
image: docker_compose.sample.api
restart: always
environment:
ASPNETCORE_ENVIRONMENT: Production
ports:
- 9100:80 # This can be commented out if using reverse proxy.
volumes:
- appdata1:/app/log
web:
#depends_on:
# - api
build:
context: ./DockerCompose.Sample.Web
# dockerfile: Dockerfile
# target: job
image: docker_compose.sample.web
restart: always
environment:
ASPNETCORE_ENVIRONMENT: Production
ports:
- 9101:80 # This can be commented out if using reverse proxy.
volumes:
- appdata2:/app/log
volumes:
appdata1:
driver: local
appdata2:
driver: local
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/lhtzbj12/netcore_docker_compose.git
[email protected]:lhtzbj12/netcore_docker_compose.git
lhtzbj12
netcore_docker_compose
netcore_docker_compose
master

搜索帮助