Managing policies on Docker

This section outlines the steps on how to manage policies in a Docker environment.

About this task

You can manage your policies on Docker by modifying the following file.
  • docker-compose.yml

To manage your policies on Docker, follow these steps:

Procedure

  1. 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.
  2. Locate and edit the policies as necessary.
  3. 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"
  4. Restart the server to apply the changes.