Start container with default configurations
Learn how to start the containers with the default configurations. That is without specifying the CONFIGURE_MODE parameter. There are mandatory and optional parameters that we can specify depending on how we want to start the container. Use the default mode in the following scenarios:
- You only want to view files inside the container and do not need the container to connect and communicate with other containers.
- Your entire Docker environment (database and other containers) uses all IBM default values for passwords and container host names. If you do not use the default host names and passwords, do not use this method. Your container will not function properly.
- You are deploying WebSphere Commerce locally as an individual test environment.
Note: This configuration mode is ideal for using Docker Compose. We can leverage the service name or network alias to ensure that the service names are the same as the default host names. We can specify the mandatory and optional parameters as environment: parameters in the Compose file. For examples on how to start WebSphere Commerce by using Docker Compose, see Deploy a WebSphere Commerce environment locally. To start the container with default configurations to view files inside the container, use:
docker run -it -e LICENSE=accept <Docker Image>
- The default host names for all containers.
Docker image Default host name commerce/crs-app store commerce/search-app search commerce/xc-app xc commerce/ts-app app commerce/ts-db Note: This assumes that we are running a Db2 Docker container. If we are not using a Db2 Docker with the host name as db, then we cannot start the container using the default configurations.
db
- The default SubjectAlternativeName in container certification.
[DNSName: *, DNSName: db, DNSName: search, DNSName: store, DNSName: xc, DNSName: app]
You are using the default datasource credentials.
Database parameters Value Database type (DBTYPE) (DB2) db2 (Oracle) oracle Database instance name (DBNAME) mall Database user (DBUSER) wcs Database user password (DPUSERPW) wcs1 Database host (DBHOST) db Database port (DBPORT) (DB2) 50000 (Oracle) 1521 Database administrator (dbadmin) db2inst1
Creating Transaction server Docker container with docker run
If the environment satisfies the default conditions, we can run the following command:docker run -it -e LICENSE=accept \ -e <Parameter1>=<Value1> -e <Parameter2>=<Value2> .... <Docker Image>
Creating Transaction server Docker container with docker compose
If we are using Docker Compose, ensure that you specify these parameters as environment: variables in your compose file.
- Starting Transaction server Docker container with default configurations
Learn how to start Transaction server Docker container without specifying the CONFIGURE_MODE parameter.- Starting Search server Docker container with default configurations
Learn how to start Search server Docker container without specifying the CONFIGURE_MODE parameter.- Starting Store server Docker container with default configurations
Learn how to start Store server Docker container without specifying the CONFIGURE_MODE parameter.- Starting Web server Docker container with default configurations
Learn how to start Web server Docker container without specifying the CONFIGURE_MODE parameter. We can use this method if the Transaction server host name is the default app.- Starting Customization server Docker container with default configurations
Learn how to start Customization server Docker container without specifying the CONFIGURE_MODE parameter.- Starting Utility server Docker container with default configurations
Learn how to start the Utility server Docker container.