Problem with Docker

1 month ago
Hi everyone, guys i have a problem, each time a generate one image with docker i lost my configuration for example plugins that i installed, how can persisten my changed or configurations for each image with docker ?
1 month ago
hllanos wrote:
Hi everyone, guys i have a problem, each time a generate one image with docker i lost my configuration for example plugins that i installed, how can persisten my changed or configurations for each image with docker ?


To preserve your changes, you need to use docker volume to store app directory for the docker container. When you do store it inside docker volume, each time you spin up container, the docker will start with what you have in image.
1 month ago
nopAccelerate.com wrote:
Hi everyone, guys i have a problem, each time a generate one image with docker i lost my configuration for example plugins that i installed, how can persisten my changed or configurations for each image with docker ?

To preserve your changes, you need to use docker volume to store app directory for the docker container. When you do store it inside docker volume, each time you spin up container, the docker will start with what you have in image.


do you have any example how to configure it ?
1 month ago
hllanos wrote:
do you have any example how to configure it ?


Hi,

Here it is:

version: "3.4"
services:
    nopcommerce_web:
        depends_on:
            - db
        image: nop:dev1
        container_name: nop-dev1
        volumes:
            - nopdata1:/app
        ports:
            - "8080:80"
    db:
     image: "mcr.microsoft.com/mssql/server:2017-latest"
     container_name: nop-sql1
     volumes:
       - nopsql1:/var/opt/mssql
     restart: always
     ports:
            - "1433:1433"
     environment:
            SA_PASSWORD: "[email protected]"
            ACCEPT_EULA: "Y"
            MSSQL_PID: "Express"

volumes:
  nopsql1:
  nopdata1:


We are using two named volumes which stores db and /app folder.

Moreover, I recommend you to go through Docker basics to understand this clearly.

Thanks,

nopAccelerate Team
1 month ago
nopAccelerate.com wrote:
do you have any example how to configure it ?

Hi,

Here it is:

version: "3.4"
services:
    nopcommerce_web:
        depends_on:
            - db
        image: nop:dev1
        container_name: nop-dev1
        volumes:
            - nopdata1:/app
        ports:
            - "8080:80"
    db:
     image: "mcr.microsoft.com/mssql/server:2017-latest"
     container_name: nop-sql1
     volumes:
       - nopsql1:/var/opt/mssql
     restart: always
     ports:
            - "1433:1433"
     environment:
            SA_PASSWORD: "[email protected]"
            ACCEPT_EULA: "Y"
            MSSQL_PID: "Express"

volumes:
  nopsql1:
  nopdata1:


We are using two named volumes which stores db and /app folder.

Moreover, I recommend you to go through Docker basics to understand this clearly.

Thanks,

nopAccelerate Team


thank you !!  i will to configurate my enviroment.
1 month ago
hllanos wrote:

thank you !!  i will to configurate my enviroment.


You're welcome. Hope it helps you to use it correctly.

Appreciate an up-vote if this is helpful. :)

Thanks,
nopAccelerate Team