代码拉取完成,页面将自动刷新
version: '3.4'
services:
vc-db:
image: mcr.microsoft.com/mssql/server:latest
ports:
- "${DOCKER_SQL_PORT:-1433}:1433"
expose:
- 1433
environment:
- ACCEPT_EULA=Y
- MSSQL_PID=Express
- SA_PASSWORD=${DB_PASS}
volumes:
- db-volume:/var/opt/mssql
networks:
- virto
virtocommerce.platform.web:
ports:
- "${DOCKER_PLATFORM_PORT:-8090}:80"
environment:
- VirtoCommerce:AllowInsecureHttp=true
- ConnectionStrings__VirtoCommerce=Data Source=vc-db;Initial Catalog=VirtoCommerce3docker;Persist Security Info=True;User ID=sa;Password=${DB_PASS};MultipleActiveResultSets=False;
- Assets__FileSystem__PublicUrl=http://localhost:${DOCKER_PLATFORM_PORT:-8090}/assets/
- Content__FileSystem__PublicUrl=http://localhost:${DOCKER_PLATFORM_PORT:-8090}/cms-content/
- Search__Provider=${SEARCH_PROVIDER}
- Search__Scope=platformindex
- Search__ElasticSearch__Server=http://elastic:9200
depends_on:
- vc-db
- elastic
entrypoint: ["/wait-for-it.sh", "vc-db:1433", "-t", "120", "--", "dotnet", "VirtoCommerce.Platform.Web.dll"]
volumes:
- ${CMS_CONTENT_VOLUME}:/app/wwwroot/cms-content
- ${MODULES_VOLUME}:/app/modules
networks:
- virto
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
container_name: elastic
environment:
- discovery.type=single-node
ports:
- 9200:9200
networks:
- virto
volumes:
db-volume:
name: db-volume
networks:
virto:
external:
name: nat
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。