modified: docker-compose.yml
Added Dockerfile build steps new file: wordpress/apache/Dockerfile Dockerfile with ssl options
This commit is contained in:
parent
119aedff9b
commit
396b4af76f
@ -2,7 +2,7 @@ version: '3.6'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
wordpress:
|
wordpress:
|
||||||
image: wordpress:latest
|
build: ./wordpress/apache
|
||||||
volumes:
|
volumes:
|
||||||
- ~/wordpress/data:/var/www/html
|
- ~/wordpress/data:/var/www/html
|
||||||
depends_on:
|
depends_on:
|
||||||
|
18
wordpress/apache/Dockerfile
Normal file
18
wordpress/apache/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
FROM wordpress:6.6.1-php8.2-apache
|
||||||
|
|
||||||
|
COPY /etc/letsencrypt/live/equilibrateit.com/privkey.pem /etc/ssl/certs/
|
||||||
|
COPY /etc/letsencrypt/live/equilibrateit.com/fullchain.pem /etc/ssl/private/
|
||||||
|
|
||||||
|
RUN set -eux; \
|
||||||
|
{ \
|
||||||
|
echo '<VirtualHost _default_:443>'; \
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# these IP ranges are reserved for "private" use and should thus *usually* be safe inside Docker
|
||||||
|
echo 'ServerName equilibrateit.com:443'; \
|
||||||
|
echo 'SSLEngine on'; \
|
||||||
|
echo 'SSLCertificateKeyFile /etc/ssl/certs/privkey.pem'; \
|
||||||
|
echo 'SSLCertificateFile /etc/ssl/private/fullchain.pem'; \
|
||||||
|
} > /etc/apache2/sites-available/equilibrateit.com-ssl.conf; \
|
Loading…
Reference in New Issue
Block a user