Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port 443 not working #18

Closed
melbaze opened this issue Jan 6, 2019 · 1 comment
Closed

Port 443 not working #18

melbaze opened this issue Jan 6, 2019 · 1 comment

Comments

@melbaze
Copy link

melbaze commented Jan 6, 2019

I cant figure out how to enable port 443.
This is my docker-compose file:

nginx:
image: wodby/nginx:$NGINX_TAG
container_name: "${PROJECT_NAME}_nginx"
depends_on:
- php
ports:
- "80:80"
- "443:443"
environment:
NGINX_STATIC_OPEN_FILE_CACHE: "off"
NGINX_ERROR_LOG_LEVEL: debug
NGINX_BACKEND_HOST: php
NGINX_VHOST_PRESET: wordpress
#NGINX_SERVER_ROOT: /var/www/html/subdir
volumes:
- $PWD/codebase:/var/www/html
- /etc/nginx

I checked the port , but it says its closed. (also not used by other services). I use nginx with wordpress.

@csandanov
Copy link
Member

This image is designed to be used behind the reverse proxy that performs TLS termination, for the local environment, it's usually something like traefik, see docker4x projects for more examples https://wodby.com/docs/docker4x/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants