dcm4chee/dcm4chee-arc-ec2-psql-keycloak.yml [1090:1173]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      PropagateTags: SERVICE
      SchedulingStrategy: REPLICA
      ServiceRegistries:
        - RegistryArn: !GetAtt LdapServiceDiscoveryEntry.Arn
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      - Key: service
        Value: ldap
      TaskDefinition:
        Ref: LdapTaskDefinition
  LdapTCP389Listener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - ForwardConfig:
            TargetGroups:
            - TargetGroupArn:
                Ref: LdapTCP389TargetGroup
          Type: forward
      LoadBalancerArn:
        Ref: LoadBalancer
      Port: 389
      Protocol: TCP
  LdapTCP389TargetGroup:
    Type: AWS::ElasticLoadBalancingV2::TargetGroup
    Properties:
      Port: 389
      Protocol: TCP
      Tags:
        - Key: project
          Value: dcm4chee-arc-psql
      TargetType: ip
      VpcId: !Ref ParameterVPCId
  LdapTaskDefinition:
    Type: AWS::ECS::TaskDefinition
    Properties:
      ContainerDefinitions:
      - Command:
        - !Sub ${AWS::Region}.compute.internal
        - dcm4chee-arc-psql.local
        Essential: false
        Image: docker/ecs-searchdomain-sidecar:1.0
        LogConfiguration:
          LogDriver: awslogs
          Options:
            awslogs-group:
              Ref: LogGroup
            awslogs-region:
              Ref: AWS::Region
            awslogs-stream-prefix: dcm4chee-arc-psql
        Name: Ldap_ResolvConf_InitContainer
      - DependsOn:
        - Condition: SUCCESS
          ContainerName: Ldap_ResolvConf_InitContainer
        Environment:
          - Name: POSTGRES_HOST
            Value: !GetAtt 'RDSInstance.Endpoint.Address'
          - Name: POSTGRES_PORT
            Value: !GetAtt 'RDSInstance.Endpoint.Port'
          - Name: POSTGRES_DB
            Value: pacsdb
          - Name: POSTGRES_PASSWORD
            Value: !Join ['', ['{{resolve:secretsmanager:', !Ref RDSDatabaseSecret, ':SecretString:password}}' ]]
          - Name: POSTGRES_USER
            Value: !Ref RDSDBUserName
          - Name: STORAGE_DIR
            Value: /storage/fs1
        Essential: true
        Image: dcm4che/slapd-dcm4chee:2.4.56-23.1
        LinuxParameters: {}
        LogConfiguration:
          LogDriver: awslogs
          Options:
            awslogs-group:
              Ref: LogGroup
            awslogs-region:
              Ref: AWS::Region
            awslogs-stream-prefix: dcm4chee-arc-psql
        Name: ldap
        PortMappings:
        - ContainerPort: 389
          HostPort: 389
          Protocol: tcp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



dcm4chee/dcm4chee-arc-ec2-psql.yml [918:1001]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      PropagateTags: SERVICE
      SchedulingStrategy: REPLICA
      ServiceRegistries:
        - RegistryArn: !GetAtt LdapServiceDiscoveryEntry.Arn
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      - Key: service
        Value: ldap
      TaskDefinition:
        Ref: LdapTaskDefinition
  LdapTCP389Listener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - ForwardConfig:
            TargetGroups:
            - TargetGroupArn:
                Ref: LdapTCP389TargetGroup
          Type: forward
      LoadBalancerArn:
        Ref: LoadBalancer
      Port: 389
      Protocol: TCP
  LdapTCP389TargetGroup:
    Type: AWS::ElasticLoadBalancingV2::TargetGroup
    Properties:
      Port: 389
      Protocol: TCP
      Tags:
        - Key: project
          Value: dcm4chee-arc-psql
      TargetType: ip
      VpcId: !Ref ParameterVPCId
  LdapTaskDefinition:
    Type: AWS::ECS::TaskDefinition
    Properties:
      ContainerDefinitions:
      - Command:
        - !Sub ${AWS::Region}.compute.internal
        - dcm4chee-arc-psql.local
        Essential: false
        Image: docker/ecs-searchdomain-sidecar:1.0
        LogConfiguration:
          LogDriver: awslogs
          Options:
            awslogs-group:
              Ref: LogGroup
            awslogs-region:
              Ref: AWS::Region
            awslogs-stream-prefix: dcm4chee-arc-psql
        Name: Ldap_ResolvConf_InitContainer
      - DependsOn:
        - Condition: SUCCESS
          ContainerName: Ldap_ResolvConf_InitContainer
        Environment:
        - Name: POSTGRES_HOST
          Value: !GetAtt 'RDSInstance.Endpoint.Address'
        - Name: POSTGRES_PORT
          Value: !GetAtt 'RDSInstance.Endpoint.Port'
        - Name: POSTGRES_DB
          Value: pacsdb
        - Name: POSTGRES_PASSWORD
          Value: !Join ['', ['{{resolve:secretsmanager:', !Ref RDSDatabaseSecret, ':SecretString:password}}' ]]
        - Name: POSTGRES_USER
          Value: !Ref RDSDBUserName
        - Name: STORAGE_DIR
          Value: /storage/fs1
        Essential: true
        Image: dcm4che/slapd-dcm4chee:2.4.56-23.1
        LinuxParameters: {}
        LogConfiguration:
          LogDriver: awslogs
          Options:
            awslogs-group:
              Ref: LogGroup
            awslogs-region:
              Ref: AWS::Region
            awslogs-stream-prefix: dcm4chee-arc-psql
        Name: ldap
        PortMappings:
        - ContainerPort: 389
          HostPort: 389
          Protocol: tcp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



