-
Notifications
You must be signed in to change notification settings - Fork 846
/
docker-compose.override.yml
57 lines (52 loc) · 1.56 KB
/
docker-compose.override.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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.15.2
container_name: elastic
environment:
- discovery.type=single-node
ports:
- 9200:9200
networks:
- virto
volumes:
db-volume:
name: db-volume
networks:
virto:
external:
name: nat