Managing policies on Docker and Podman
This section outlines the steps on how to manage policies in a Docker and Podman environment.
About this task
You can manage your policies on Docker by modifying the following file.
docker-compose.yml
The Docker and Podman commands are similar. The only difference is that docker precedes the command when issued in a Docker environment and podman precedes the name in a Podman environment. Example commands used in the Sametime documentation are shown using Docker. For Podman, change docker to podman.
Procedure
-
Copy the applicable files out of the container.
docker cp <container_name>:/local/notesdata/policies.user.xml . docker cp <container_name>:/local/notesdata/policies.server.xml .
This step places the files in the current directory. - Locate and edit the policies as necessary.
-
In the Community section of
docker-compose.yml
, add a volume reference. Below is an example.services: community: image: hclcr.io/st/chat-server:${BUILD_LEVEL} restart: ${RESTART_POLICY} env_file: - custom.env - debug.env environment: - JWT_SECRET_ENV=${JWT_APP_SECRET} - DOMINO_SERVER_HOST_ENV=domino - DOMINO_SERVER_NAME_ENV=CN\=domino\/O\=test - DOMINO_SERVER_DOMAIN_ENV=test - ST_BRANDING_INFO_ENV=standard volumes: - ./policies.user.xml:/local/notesdata/policies.user.xml networks: - sametime.test extra_hosts: - "stmobilev12:10.134.102.40"
- Restart the server to apply the changes.