Compare commits

...

11 Commits

Author SHA1 Message Date
Mike Holloway
5e2b9fbd25 SSL config adjustments/ 2024-08-19 17:25:43 -04:00
Mike Holloway
cc854e6f3a COPY Path Work 2024-08-19 17:21:18 -04:00
Mike Holloway
9f2d4f3a72 Dockerfile formatting fix 2024-08-19 17:17:49 -04:00
Mike Holloway
263428372f Enable apache2 mod_ssl 2024-08-19 17:15:49 -04:00
Mike Holloway
4f50badec8 Closing VirtualHost config block 2024-08-19 17:13:21 -04:00
Mike Holloway
a96c3f6e65 sites-avaialbe conf link. 2024-08-19 17:10:20 -04:00
Mike Holloway
d3d0abdfdc Manually copying ssl files to build root 2024-08-19 17:07:44 -04:00
Mike Holloway
ae2f62bf7c Add epel repo role 2024-08-19 16:49:23 -04:00
Mike Holloway
79a38f31e0 modified: ansible/playbooks/equilibrateit.com.yml
Added certbot role
2024-08-19 16:45:47 -04:00
Mike Holloway
396b4af76f modified: docker-compose.yml
Added Dockerfile build steps
new file:   wordpress/apache/Dockerfile
	Dockerfile with ssl options
2024-08-19 16:41:36 -04:00
Mike Holloway
119aedff9b Reorder containers 2024-08-19 16:00:53 -04:00
4 changed files with 32 additions and 8 deletions

View File

@ -33,6 +33,7 @@ A containerized Wordpress, MySQL stack using [this official upstream project Doc
---
#### docker-compose.yml
##### To Do
- `certbot certonly -d equilibrateit.com -d equilibrateit.ca`
- mysql 8.1
- Investigate php-fpm arch?

View File

@ -5,3 +5,5 @@
roles:
- podman-host
- repo-epel
- certbot

View File

@ -1,15 +1,8 @@
version: '3.6'
services:
db:
image: mysql:5.7
volumes:
- ~/wordpress/database:/var/lib/mysql
restart: always
env_file: ".env"
wordpress:
image: wordpress:latest
build: ./wordpress/apache
volumes:
- ~/wordpress/data:/var/www/html
depends_on:
@ -19,6 +12,13 @@ services:
restart: always
env_file: ".env"
db:
image: mysql:5.7
volumes:
- ~/wordpress/database:/var/lib/mysql
restart: always
env_file: ".env"
wordpress-cli:
depends_on:
- db

View File

@ -0,0 +1,21 @@
FROM wordpress:6.6.1-php8.2-apache
COPY fullchain.pem /etc/ssl/certs/
COPY privkey.pem /etc/ssl/private/
RUN set -eux; \
a2enmod ssl; \
{ \
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/private/privkey.pem'; \
echo 'SSLCertificateFile /etc/ssl/certs/fullchain.pem'; \
echo '</VirtualHost>'; \
} > /etc/apache2/sites-available/equilibrateit.com-ssl.conf; \
ln -s /etc/apache2/sites-available/equilibrateit.com-ssl.conf /etc/apache2/sites-enabled/equilibrateit.com-ssl.conf; \