Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to enable https? #668

yongpro started this conversation in General
Discussion options

Hi,

I use wordpress of docker version normally, now want to enable https. Do we have guide to enable that? Follow my now config:

[root@xxxxxxx my_wordpress]# more docker-compose.yml
version: '3'
 
services:
 db:
 image: mysql:5.7
 volumes:
 - ./mysql_data:/var/lib/mysql
 restart: always
 environment:
 MYSQL_ROOT_PASSWORD: xxxx
 MYSQL_DATABASE: wordpress
 MYSQL_USER: wordpress
 MYSQL_PASSWORD: wordpress
 
 wordpress:
 depends_on:
 - db
 image: wordpress:latest
 volumes:
 - ./wordpress_data:/var/www/html
 ports:
 - "80:80"
 dns:
 - 1.0.0.1
 - 8.8.8.8
 restart: always
 environment:
 WORDPRESS_DB_NAME: wordpress
 WORDPRESS_DB_HOST: db:3306
 WORDPRESS_DB_USER: wordpress
 WORDPRESS_DB_PASSWORD: wordpress
volumes:
 db_data:
You must be logged in to vote

Replies: 1 comment

Comment options

Here's an example from a while back #46 (comment)

You could also try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow. Since these repos aren't really a user-help forum

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Converted from issue

This discussion was converted from issue #667 on December 02, 2021 16:43.

AltStyle によって変換されたページ (->オリジナル) /