Skip to content

Instantly share code, notes, and snippets.

@laurentkempe
Last active February 2, 2017 15:03
Show Gist options
  • Select an option

  • Save laurentkempe/d529fcdf54724a900533f26fa4a768c3 to your computer and use it in GitHub Desktop.

Select an option

Save laurentkempe/d529fcdf54724a900533f26fa4a768c3 to your computer and use it in GitHub Desktop.
Free HTTPS certificates for Docker containers running ASP.NET Core RC2 on Microsoft Azure
> docker-compose.exe up -d
Starting hipchatconnect_hipchatconnect_1
Starting hipchatconnect_https-portal_1
https-portal:
image: steveltn/https-portal
ports:
- '80:80'
- '443:443'
links:
- hipchatconnect
restart: always
environment:
DOMAINS: 'hipchat.laurentkempe.com -> http://hipchatconnect:5000'
STAGE: 'production'
# STAGE: local
# FORCE_RENEW: 'true'
hipchatconnect:
image: laurentkempe/hipchatconnect
environment:
BASE_URL: 'https://hipchat.laurentkempe.com'
> docker logs -f c7f789a5656b
[fix-attrs.d] applying owners & permissions fixes...
[fix-attrs.d] 00-runscripts: applying...
[fix-attrs.d] 00-runscripts: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-setup: executing...
2016/06/19 05:45:33 [notice] 118#118: signal process started
Generating RSA private key, 2048 bit long modulus
..+++
.........................................+++
e is 65537 (0x10001)
Signing certificates from https://acme-v01.api.letsencrypt.org ...
Parsing account key...
Parsing CSR...
Registering account...
Registered!
Verifying hipchat.laurentkempe.com...
hipchat.laurentkempe.com verified!
Signing certificate...
Certificate signed!
2016/06/19 05:45:41 [notice] 138#138: signal process started
Signed key for hipchat.laurentkempe.com
2016/06/19 05:45:41 [notice] 139#139: signal process started
[cont-init.d] 00-setup: exited 0.
[cont-init.d] 10-set-docker-gen-status: executing...
[cont-init.d] 10-set-docker-gen-status: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting crond ...
> docker ps
CONTAINER ID IMAGE COMMAND CREATED
c7f789a5656b steveltn/https-portal "/init" 2 minutes ago
e7dc0907e7ce laurentkempe/hipchatconnect "dotnet run" 19 hours ago
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment