Skip to content

Instantly share code, notes, and snippets.

@emk
Created May 14, 2017 21:22
Show Gist options
  • Save emk/7a03185fa79c04fdca9dbb5d2c221408 to your computer and use it in GitHub Desktop.
Save emk/7a03185fa79c04fdca9dbb5d2c221408 to your computer and use it in GitHub Desktop.
nginx-proxy ECS config (untested)
{
"containerDefinitions": [
{
"name": "nginx-proxy",
"image": "771600087445.dkr.ecr.us-east-1.amazonaws.com/nginx-proxy:latest",
"memory": "128",
"essential": true,
"portMappings": [
{
"hostPort": "443",
"containerPort": "443",
"protocol": "tcp"
}
],
"environment": null,
"mountPoints": [
{
"sourceVolume": "docker-sock",
"containerPath": "/tmp/docker.sock",
"readOnly": true
},
{
"sourceVolume": "nginx-certs",
"containerPath": "/etc/nginx/certs",
"readOnly": true
}
],
"volumesFrom": null,
"hostname": null,
"user": null,
"workingDirectory": null,
"extraHosts": null,
"logConfiguration": null,
"ulimits": null,
"dockerLabels": {
"com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy": "true"
}
},
{
"name": "letsencrypt-nginx-proxy-companion",
"image": "jwilder/nginx-proxy",
"memory": "64",
"essential": true,
"portMappings": [],
"environment": null,
"mountPoints": [
{
"sourceVolume": "docker-sock",
"containerPath": "/var/run/docker.sock",
"readOnly": true
},
{
"sourceVolume": "nginx-certs",
"containerPath": "/etc/nginx/certs",
"readOnly": ""
}
],
"volumesFrom": [
{
"sourceContainer": "nginx-proxy",
"readOnly": ""
}
],
"hostname": null,
"user": null,
"workingDirectory": null,
"extraHosts": null,
"logConfiguration": null,
"ulimits": null,
"dockerLabels": null
}
],
"volumes": [
{
"name": "docker-sock",
"host": {
"sourcePath": "/var/run/docker.sock"
}
},
{
"name": "nginx-certs",
"host": {
"sourcePath": "/data/nginx-proxy/etc/nginx/certs"
}
}
],
"networkMode": "bridge",
"placementConstraints": [],
"family": "nginx-proxy"
}
@emk
Copy link
Author

emk commented May 14, 2017

For now, this only listens on port 443. We'll only enable it on port 80 once it's clearly working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment