Skip to content

How to enable https? #667

Closed
Closed

Description

@yongpro

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:

Activity

  1. added
    questionUsability question, not directly related to an error with the image
    on Dec 2, 2021
  2. wglambert commented on Dec 2, 2021

    @wglambert

    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

  3. locked and limited conversation to collaborators on Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions