dcm4chee/dcm4chee-arc-ec2-psql-keycloak.yml [700:822]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      PropagateTags: SERVICE
      SchedulingStrategy: REPLICA
      ServiceRegistries:
        - RegistryArn: !GetAtt ArcServiceDiscoveryEntry.Arn
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      - Key: service
        Value: arc
      TaskDefinition:
        Ref: ArcTaskDefinition
  ArcTCP8080Listener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - ForwardConfig:
            TargetGroups:
            - TargetGroupArn:
                Ref: ArcTCP8080TargetGroup
          Type: forward
      LoadBalancerArn:
        Ref: LoadBalancer
      Port: 8080
      Protocol: TCP
  ArcTCP8080TargetGroup:
    Type: AWS::ElasticLoadBalancingV2::TargetGroup
    Properties:
      Port: 8080
      Protocol: TCP
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      TargetType: ip
      VpcId: !Ref ParameterVPCId
  ArcTCP8443Listener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - ForwardConfig:
            TargetGroups:
            - TargetGroupArn:
                Ref: ArcTCP8443TargetGroup
          Type: forward
      LoadBalancerArn:
        Ref: LoadBalancer
      Port: 8443
      Protocol: TCP
  ArcTCP8443TargetGroup:
    Type: AWS::ElasticLoadBalancingV2::TargetGroup
    Properties:
      Port: 8443
      Protocol: TCP
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      TargetType: ip
      VpcId: !Ref ParameterVPCId
  ArcTCP11112Listener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - ForwardConfig:
            TargetGroups:
            - TargetGroupArn: !Ref ArcTCP11112TargetGroup
          Type: forward
      LoadBalancerArn:
        Ref: LoadBalancer
      Port: 11112
      Protocol: TCP
  ArcTCP11112TargetGroup:
    Type: AWS::ElasticLoadBalancingV2::TargetGroup
    Properties:
      HealthCheckPort: 8080
      Port: 11112
      Protocol: TCP
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      TargetType: ip
      VpcId: !Ref ParameterVPCId
  ArcTaskDefinition:
    Type: AWS::ECS::TaskDefinition
    DependsOn:
      - RDSInstance
    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: Arc_ResolvConf_InitContainer
      - DependsOn:
        - Condition: SUCCESS
          ContainerName: Arc_ResolvConf_InitContainer
        Environment:
        - Name: JAVA_OPTS
          Value: -Xms256m -Xmx2048m -XX:MetaspaceSize=256M -XX:MaxMetaspaceSize=2048m
            -Djava.net.preferIPv4Stack=true -agentlib:jdwp=transport=dt_socket,address=*:8787,server=y,suspend=n
        - 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
        - Name: WILDFLY_ADMIN_PASSWORD
          Value: !Ref AdminPASSWORD
        - Name: WILDFLY_ADMIN_USER
          Value: !Ref AdminUSER
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



dcm4chee/dcm4chee-arc-ec2-psql.yml [593:715]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      PropagateTags: SERVICE
      SchedulingStrategy: REPLICA
      ServiceRegistries:
        - RegistryArn: !GetAtt ArcServiceDiscoveryEntry.Arn
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      - Key: service
        Value: arc
      TaskDefinition:
        Ref: ArcTaskDefinition
  ArcTCP8080Listener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - ForwardConfig:
            TargetGroups:
            - TargetGroupArn:
                Ref: ArcTCP8080TargetGroup
          Type: forward
      LoadBalancerArn:
        Ref: LoadBalancer
      Port: 8080
      Protocol: TCP
  ArcTCP8080TargetGroup:
    Type: AWS::ElasticLoadBalancingV2::TargetGroup
    Properties:
      Port: 8080
      Protocol: TCP
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      TargetType: ip
      VpcId: !Ref ParameterVPCId
  ArcTCP8443Listener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - ForwardConfig:
            TargetGroups:
            - TargetGroupArn:
                Ref: ArcTCP8443TargetGroup
          Type: forward
      LoadBalancerArn:
        Ref: LoadBalancer
      Port: 8443
      Protocol: TCP
  ArcTCP8443TargetGroup:
    Type: AWS::ElasticLoadBalancingV2::TargetGroup
    Properties:
      Port: 8443
      Protocol: TCP
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      TargetType: ip
      VpcId: !Ref ParameterVPCId
  ArcTCP11112Listener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - ForwardConfig:
            TargetGroups:
            - TargetGroupArn: !Ref ArcTCP11112TargetGroup
          Type: forward
      LoadBalancerArn:
        Ref: LoadBalancer
      Port: 11112
      Protocol: TCP
  ArcTCP11112TargetGroup:
    Type: AWS::ElasticLoadBalancingV2::TargetGroup
    Properties:
      HealthCheckPort: 8080
      Port: 11112
      Protocol: TCP
      Tags:
      - Key: project
        Value: dcm4chee-arc-psql
      TargetType: ip
      VpcId: !Ref ParameterVPCId
  ArcTaskDefinition:
    Type: AWS::ECS::TaskDefinition
    DependsOn:
      - RDSInstance
    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: Arc_ResolvConf_InitContainer
      - DependsOn:
        - Condition: SUCCESS
          ContainerName: Arc_ResolvConf_InitContainer
        Environment:
        - Name: JAVA_OPTS
          Value: -Xms256m -Xmx2048m -XX:MetaspaceSize=256M -XX:MaxMetaspaceSize=2048m
            -Djava.net.preferIPv4Stack=true -agentlib:jdwp=transport=dt_socket,address=*:8787,server=y,suspend=n
        - 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
        - Name: WILDFLY_ADMIN_PASSWORD
          Value: !Ref AdminPASSWORD
        - Name: WILDFLY_ADMIN_USER
          Value: !Ref AdminUSER
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



