NextGen Knowledge Center

ECS: Create the Cluster:

  1. Under Get Started - Create custom Container(configure).
  2. Edit Container:
    1. Provide container name
    2. Provide image, this refers to the image pushed to your ECR repository, and it has the following format: <aws_account_id>.dkr.ecr.<region>.amazonaws.com/<repository>:<tag>.
    3. Add Port Mappings 8080 and 8443 under Private repository authentication.
  3. Health Check:
    1. Provide command: curl -f http://localhost:8080/ || exit 1
    2. Interval: 300
    3. Timeout: 60
    4. Start Period: 300
    5. Retries: 3
  4. Environment:
    1. CPU units: 1024/2048
    2. GPUs: 1
    3. Entry point: /entrypoint.sh
    4. Command: ./mcserver
    5. Working directory: /opt/connect
    6. Environment Variables:
      • DATABASE=postgres
      • KEYSTORE_STOREPASS=docker_storepass
      • KEYSTORE_KEYPASS=docker_keypass
      • DATABASE_URL=jdbc:postgresql://serverip:5432/mirthdb
      • DATABASE_USERNAME= database_username
      • DATABASE_PASSWORD= database_password
  5. STORAGE AND LOGGING
    1. Mount points: /opt/connect/appdata
    2. Log configuration: Check - "Auto-configure CloudWatch Logs"
  6. Provide Task definition details:
    1. Task definition name
    2. Network mode
    3. Task execution role
    4. Compatibility
    5. Task memory
    6. Task CPU
  7. Define your Service and click Create button. This would create the cluster.
  8. Click on the service you have created and go to Tasks tab and verify that the tasks status are RUNNING.