Created
May 14, 2017 21:22
-
-
Save emk/7a03185fa79c04fdca9dbb5d2c221408 to your computer and use it in GitHub Desktop.
nginx-proxy ECS config (untested)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For now, this only listens on port 443. We'll only enable it on port 80 once it's clearly working.