All templates start 3 Docker Containers:
DXP Open Edition starts with a PostgreSQL Server which is initialized with
a DB planet9
with a schema planet9
. The DB is data is mounted to a volume,
therefore the data will persists for the same DXP Open Edition version.
docker-compose up
in the targeted version number.localhost:8080
localhost:3000
docker-compose down
to stop all docker imagesMight only work for OSX
and Linux
(not tested on Windows.)
To run locally DXP Open Edition with MSSQL, some other steps are required to run locally.
IMPORTANT: Volume binding is not supported on Mac!
Build locally the docker image for MS SQL which creates a default planet9
database and planet9
schema.
cd v21.6.4-mssql
docker build -f docker-image/Dockerfile docker-image -t localmssql:latest --no-cache
Now we can run our docker compose command.
docker-compose up
When you start for the first time, the database needs to be initialized and Planet 9 will faill to connect (as the DB is still beinig initialized). If you see the following message in the output:
db_1 | setup.sql completed
db_1 | Finished with import-data.sh
db_1 | 2021-10-03 15:10:37.14 spid28s The tempdb database has 4 data file(s).
Just run docker-compose up
once more in the same folder from another terminal window.
planet9
database and planet9
schema.
cd v21.6.4-mssql
docker build -f docker-image/Dockerfile docker-image -t localmssql:latest --no-cache
NETWORK_ID=$(docker network create my_network)
docker run --network $NETWORK_ID \
-e ACCEPT_EULA=Y \
-e MSSQL_PID=Developer \
-e SA_PASSWORD="m8p@assworD" \
--name MSSQL \
--hostname db-server \
localmssql:latest
NETWORK_ID=$(docker network ls --filter NAME=my_network -q)
docker run --network "$NETWORK_ID" \
-e DB_TYPE=mssql \
-e DB_MSSQL_HOST=db-server \
-e DB_MSSQL_USER=sa \
-e DB_MSSQL_PASSWORD="m8p@assworD" \
-p 8080:8080 \
neptunesoftware/planet9:v2.6.4
localhost:8080
Don't forget to clean up respources!