My docker compose is :
version: "3.4"
services:
nopcommerce_web:
build: .
container_name: nopcommerce
ports:
- "8010:80"
- "8011:80"
- "8012:80"
depends_on:
- nopcommerce_database
environment:
ASPNETCORE_ENVIRONMENT: ${ASPNETCORE_ENVIRONMENT}
ConnectionStrings__ConnectionString: ${CONNECTIONSTRING}
nopcommerce_database:
image: "mcr.microsoft.com/mssql/server:2019-latest"
container_name: nopcommerce_mssql_server
expose:
- "1433"
environment:
SA_PASSWORD: ${SA_PASSWORD}
ACCEPT_EULA: "Y"
MSSQL_PID: "Express"
ports:
- "1433:1433"
volumes:
- nopcommerce_db:/var/opt/mssql
volumes:
nopcommerce_data:
nopcommerce_db:
With the connection string, if I use docker-compose down and docker-compose up -d, the information for the connection string is okay, but I lose my theme or plugin installed.
I don't want to create a volume for the entire website because I would like to personalize multiple pages if necessary.
Thanks for your help
-->I find the solution, we need modify dockerignores and dockerfile to includes plugins