Skip to content
Snippets Groups Projects
Commit 52beafab authored by Harald Nezbeda's avatar Harald Nezbeda
Browse files

Add dockerfile to enable self-signed certificate

parent b64ed4a4
Branches https
No related tags found
No related merge requests found
version: '3'
services:
wp:
image: wordpress:latest # https://hub.docker.com/_/wordpress/
build:
context: ./docker
dockerfile: Wordpress
ports:
- 127.0.0.1:80:80 # change ip if required
- 127.0.0.1:443:443 # change ip if required
volumes:
- ./config/php.conf.uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./docker/config/php.conf.uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./wp-app:/var/www/html # Full wordpress project
#- ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development
#- ./theme-name/trunk/:/var/www/html/wp-content/themes/theme-name # Theme development
......
FROM wordpress:latest
# https://hub.docker.com/_/wordpress/
MAINTAINER Harald Nezbeda <hn@nezhar.com>
RUN apt-get update && \
apt-get install -y --no-install-recommends ssl-cert && \
rm -r /var/lib/apt/lists/* && \
a2enmod ssl && \
a2ensite default-ssl
EXPOSE 80
EXPOSE 443
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment