# SSL with Compose / Docker 18 / Kong 0.14

**URL:** <https://discuss.konghq.com/t/ssl-with-compose-docker-18-kong-0-14/2475>\
**Category:** Questions\
**Created:** [December 18, 2018, 6:21pm UTC](https://discuss.konghq.com/t/ssl-with-compose-docker-18-kong-0-14/2475 "2018-12-18T18:21:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rich\_Schramm](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/rich_schramm/32/657_2.png) [@Rich\_Schramm](https://discuss.konghq.com/u/Rich_Schramm)\
**Post date:** [December 18, 2018, 6:21pm UTC](https://discuss.konghq.com/t/ssl-with-compose-docker-18-kong-0-14/2475/1 "2018-12-18T18:21:07Z")

</div>

I am trying to run Kong proxy and admin via SSL. I am on ubuntu 18.04 with Docker version 18.09.0, build 4d60db4 and the latest build of Kong (0.14.x).

I have read through the docs and questions about configuring SSL and have tried with my own self-signed certificates as well as leaving them blank and nginx is simply not starting up on 8443.

From within the kong container, it is only listening on 40497, 8000, and 8001 as per below:

/ # netstat -plnt  
Active Internet connections (only servers)  
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name  
tcp 0 0 127.0.0.11:40497 0.0.0.0:\* LISTEN -  
tcp 0 0 0.0.0.0:8000 0.0.0.0:\* LISTEN 1/kong -c nginx.con  
tcp 0 0 0.0.0.0:8001 0.0.0.0:\* LISTEN 1/kong -c nginx.con

So this appears to be a kong configuration issue, but I am stumped. I am using docker-compose and my docker-compose.yml file is below. I have commented out SSL environment vars that were previously tried and failed. BTW, everything works fine on 8000 with http.

docker-compose.yml:

version: “3”

networks:  
kong-net:  
driver: bridge

services:

#######################################

# Postgres: The database used by Kong

#######################################  
kong-database:  
image: postgres:9.6  
restart: always  
networks:  
- kong-net  
environment:  
POSTGRES\_USER: kong  
POSTGRES\_DB: kong  
ports:  
- “5432:5432”  
healthcheck:  
test: [“CMD”, “pg\_isready”, “-U”, “kong”]  
interval: 5s  
timeout: 5s  
retries: 5

#######################################

# Kong database migration

#######################################  
kong-migration:  
image: kong:latest  
command: “kong migrations up”  
networks:  
- kong-net  
restart: on-failure  
environment:  
KONG\_PG\_HOST: kong-database  
links:  
- kong-database  
depends\_on:  
- kong-database

#######################################

# Kong: The API Gateway

#######################################  
kong:  
image: kong:latest  
restart: always  
networks:  
- kong-net  
environment:  
KONG\_PG\_HOST: kong-database  
KONG\_PROXY\_LISTEN: 0.0.0.0:8000, 0.0.0.0:8443 ssl  
KONG\_ADMIN\_LISTEN: 0.0.0.0:8001, 0.0.0.0:8444 ssl  
#Added by Rich  
#KONG\_SSL: “on”  
#KONG\_SSL\_CERT: /etc/ssl/certs/nginx-selfsigned.crt  
#KONG\_SSL\_CERT\_KEY: /etc/ssl/private/nginx-selfsigned.key  
#KONG\_ADMIN\_SSL\_CERT: /etc/ssl/certs/nginx-selfsigned.crt  
#KONG\_ADMIN\_SSL\_CERT\_KEY: /etc/ssl/private/nginx-selfsigned.key  
depends\_on:  
- kong-migration  
- kong-database  
healthcheck:  
test: [“CMD”, “curl”, “-f”, “[http://kong:8001](http://kong:8001)”]  
interval: 5s  
timeout: 2s  
retries: 15  
ports:  
- “8001:8001”  
- “8000:8000”  
- “8443:8443”  
- “8444:8444”

Any help greatly appreciated.
