Compare commits

...

3 Commits

Author SHA1 Message Date
bisco
9f8bc17899 added wordpress compose file and all needed resources 2023-11-15 10:41:17 +01:00
bisco
d3adf0cb74 added volumes directory to git ignore file 2023-11-15 10:40:14 +01:00
bisco
7132cdc425 changed base images - fixed end of line sequence 2023-11-15 10:39:49 +01:00
5 changed files with 75 additions and 29 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
data

View File

@ -1,7 +1,7 @@
version: "3"
services:
app:
image: app:slim
image: app:debian
build: app
expose:
- "5000"
@ -13,7 +13,7 @@ services:
- app
webserver:
image: webserver:proxy
image: websrv:proxy
build: webserver
expose:
- "80"

33
docker-compose-wp.yml Normal file
View File

@ -0,0 +1,33 @@
version: "3"
services:
db:
image: mariadb:lts
expose:
- "3306"
env_file:
- envs/db
volumes:
- ./data/db:/var/lib/mysql/
networks:
webnet:
aliases:
- dbsrv
frontend:
image: php:8.2-wp
build: frontend
expose:
- "80"
ports:
- "80:80"
volumes:
- ./data/htdocs:/var/www/html/
networks:
webnet:
aliases:
- www
depends_on:
- db
networks:
webnet:

4
envs/db Normal file
View File

@ -0,0 +1,4 @@
MARIADB_DATABASE = mywebsitedb
MARIADB_USER = wpuser
MARIADB_PASSWORD = Xb65t6PwyttpamRd
MARIADB_ROOT_PASSWORD = t4mh59DWdnCh9ecVECvs69Q4M8Ssk6a6

8
frontend/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM php:8.2-apache
RUN apt update
RUN apt install -y \
zlib1g-dev \
libpng-dev
RUN docker-php-ext-install \
gd \
mysqli