CentraSite 10.11 | CentraSite Administrator’s Guide | Configuring CentraSite | Docker Configuration | Starting the CentraSite Docker Containers
 
Starting the CentraSite Docker Containers
*To start the CentraSite Docker containers, place the docker-compose.yml script inside a directory and run the docker-compose up -d command.
This command starts CentraSite Registry Repository (CRR) and CentraSite Application Server Tier (CAST) in separate Docker containers and creates a Docker network to connect both the containers.
Note:
CentraSite stores the CentraSite database files at the /data volume outside the Docker container. If no database files are found, new database files are created at docker container startup.
A sample output looks as follows:
-bash-4.2$ docker-compose up -d
Starting crrcontainer ... done
Starting castcontainer ... done
To shutdown the CRR and CAST containers, run the docker-compose down -v command.
A sample output looks as follows:
-bash-4.2$ docker-compose down -v
Stopping castcontainer ... done
Stopping crrcontainer ... done
Removing castcontainer ... done
Removing crrcontainer ... done
Removing network centrasite_sagnetworkRemoving volume centrasite_CentraSiteDB
Removing volume centrasite_CentraSiteLogs
Removing volume centrasite_CentraSiteConfig
Removing volume centrasite_CentraSiteLicense
Removing volume centrasite_CTPConfiguration
Removing volume centrasite_CTPLogs
Docker Compose Example
A sample Docker compose example is as follows:
version: '3'
services:
crr:
image: crrimage
container_name: crrcontainer
hostname: crrcontainer
ports:
- "53313:53313"
environment:
- ACCEPT_EULA=Y
volumes:
- CentraSiteDB:/data
- CentraSiteLogs:/logs
- CentraSiteConfig:/configs
- CentraSiteLicense:/licenses
networks:
- sagnetwork
cast:
image: castimage
container_name: castcontainer
hostname: castcontainer
ports:
- "53307:53307"
- "53308:53308"
- "8181:8181"
environment:
- ACCEPT_EULA=Y
- CRRHOST=crrcontainer
volumes:
- CTPConfiguration:/configs
- CTPLogs:/logs
depends_on:
- crr
networks:
- sagnetwork
volumes:
CentraSiteDB:
CentraSiteLogs:
CentraSiteConfig:
CentraSiteLicense:
CTPConfiguration:
CTPLogs:
networks:
sagnetwork:
driver: bridge