Archived
1
0

」 feat: Changed folder structure to comply with the dumb subject

This commit is contained in:
2025-01-12 15:17:52 +01:00
parent 45ef1f3ddf
commit 9f8cf6b3ea
17 changed files with 40 additions and 37 deletions

62
srcs/docker-compose.yml Normal file
View File

@ -0,0 +1,62 @@
name: inception
volumes:
wp-db:
wp-site:
networks:
inception:
external: false
services:
nginx:
container_name: inception-nginx
build:
context: .
dockerfile: docker/nginx/dockerfile
networks:
- inception
environment:
- TZ=Europe/Paris
depends_on:
- wordpress-php
- db
volumes:
- wp-site:/var/www/html
ports:
- "443:443"
restart: unless-stopped
wordpress-php:
container_name: inception-wordp-php
build:
context: .
dockerfile: docker/wordpress/dockerfile
networks:
- inception
environment:
- PHP_MEMORY_LIMIT="512M"
- PHP_MAX_UPLOAD="50M"
- TZ=Europe/Paris
volumes:
- wp-site:/var/www/html
depends_on:
- db
restart: unless-stopped
db:
container_name: inception-db
build:
context: .
dockerfile: docker/mariadb/Dockerfile
networks:
- inception
environment:
- MYSQL_ROOT_PASSWORD="alpine"
- MYSQL_PASSWORD="alpine"
- MYSQL_USER="kanel"
- MYSQL_DATABASE="knl"
- TZ=Europe/Paris
volumes:
- wp-db:/var/lib/mysql
restart: unless-stopped