Compare commits
3 Commits
108b9ed752
...
9f8bc17899
Author | SHA1 | Date | |
---|---|---|---|
|
9f8bc17899 | ||
|
d3adf0cb74 | ||
|
7132cdc425 |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
data
|
@ -1,30 +1,30 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: app:slim
|
image: app:debian
|
||||||
build: app
|
build: app
|
||||||
expose:
|
expose:
|
||||||
- "5000"
|
- "5000"
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
networks:
|
networks:
|
||||||
webnet:
|
webnet:
|
||||||
aliases:
|
aliases:
|
||||||
- app
|
- app
|
||||||
|
|
||||||
webserver:
|
webserver:
|
||||||
image: webserver:proxy
|
image: websrv:proxy
|
||||||
build: webserver
|
build: webserver
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
networks:
|
networks:
|
||||||
webnet:
|
webnet:
|
||||||
aliases:
|
aliases:
|
||||||
- www
|
- www
|
||||||
depends_on:
|
depends_on:
|
||||||
- app
|
- app
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
webnet:
|
webnet:
|
33
docker-compose-wp.yml
Normal file
33
docker-compose-wp.yml
Normal 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
4
envs/db
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
MARIADB_DATABASE = mywebsitedb
|
||||||
|
MARIADB_USER = wpuser
|
||||||
|
MARIADB_PASSWORD = Xb65t6PwyttpamRd
|
||||||
|
MARIADB_ROOT_PASSWORD = t4mh59DWdnCh9ecVECvs69Q4M8Ssk6a6
|
8
frontend/Dockerfile
Normal file
8
frontend/Dockerfile
Normal 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
|
Loading…
Reference in New Issue
Block a user