koombea/proxy

By koombea

Updated almost 6 years ago

Proxy

Image
0

500K+

koombea/proxy

Simple Nginx for HTTPS redirects in ECS cluster using a base domain(cluster_domain). It's used by default in terraform aws_ecs module. It uses the ALB HTTP listener and returns a redirect to the ALB HTTPS listener where the application is running.

Example usage in ECS:

[
  {
    "name": "${container_name}",
    "mountPoints": [],
    "image": "koombea/proxy:${proxy_version}",
    "essential": true,
    "memoryReservation": ${memory_limit},
    "environment": [
      {
        "name": "CLUSTER_DOMAIN",
        "value": "*.${cluster_domain}"
      }
    ],
    "portMappings": [
      {
        "protocol": "tcp",
        "containerPort": 80,
        "hostPort": 0
      }
    ],
    "cpu": 0,
    "volumesFrom": [],
    "logConfiguration": {
      "logDriver": "awslogs",
      "options": {
        "awslogs-group": "${logs_group_name}",
        "awslogs-region": "${aws_region}",
        "awslogs-stream-prefix": "${cluster_domain}"
      }
    }
  }
]

Docker Pull Command

docker pull koombea/proxy