Compare commits
11 Commits
36c4306906
...
5e2b9fbd25
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e2b9fbd25 | ||
|
|
cc854e6f3a | ||
|
|
9f2d4f3a72 | ||
|
|
263428372f | ||
|
|
4f50badec8 | ||
|
|
a96c3f6e65 | ||
|
|
d3d0abdfdc | ||
|
|
ae2f62bf7c | ||
|
|
79a38f31e0 | ||
|
|
396b4af76f | ||
|
|
119aedff9b |
@ -33,6 +33,7 @@ A containerized Wordpress, MySQL stack using [this official upstream project Doc
|
|||||||
---
|
---
|
||||||
#### docker-compose.yml
|
#### docker-compose.yml
|
||||||
##### To Do
|
##### To Do
|
||||||
|
- `certbot certonly -d equilibrateit.com -d equilibrateit.ca`
|
||||||
- mysql 8.1
|
- mysql 8.1
|
||||||
- Investigate php-fpm arch?
|
- Investigate php-fpm arch?
|
||||||
|
|
||||||
|
|||||||
@ -5,3 +5,5 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- podman-host
|
- podman-host
|
||||||
|
- repo-epel
|
||||||
|
- certbot
|
||||||
|
|||||||
@ -1,15 +1,8 @@
|
|||||||
version: '3.6'
|
version: '3.6'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
|
||||||
image: mysql:5.7
|
|
||||||
volumes:
|
|
||||||
- ~/wordpress/database:/var/lib/mysql
|
|
||||||
restart: always
|
|
||||||
env_file: ".env"
|
|
||||||
|
|
||||||
wordpress:
|
wordpress:
|
||||||
image: wordpress:latest
|
build: ./wordpress/apache
|
||||||
volumes:
|
volumes:
|
||||||
- ~/wordpress/data:/var/www/html
|
- ~/wordpress/data:/var/www/html
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -19,6 +12,13 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
env_file: ".env"
|
env_file: ".env"
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: mysql:5.7
|
||||||
|
volumes:
|
||||||
|
- ~/wordpress/database:/var/lib/mysql
|
||||||
|
restart: always
|
||||||
|
env_file: ".env"
|
||||||
|
|
||||||
wordpress-cli:
|
wordpress-cli:
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|||||||
21
wordpress/apache/Dockerfile
Normal file
21
wordpress/apache/Dockerfile
Normal 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; \
|
||||||
Loading…
Reference in New Issue
Block a user