1
0

🏗️」 wip: should be working but not

This commit is contained in:
2025-02-07 18:55:44 +01:00
parent 610eac560e
commit f0659b8206
13 changed files with 147 additions and 35 deletions

View File

@ -0,0 +1,10 @@
setup-corr:
mkdir -P $HOME/data
correction:
docker compose --profile correction -f $(DOCKER_CONTEXT)docker-compose.yml up -d --build
stop:
docker compose --profile correction -f $(DOCKER_CONTEXT)docker-compose.yml stop
.PHONY: stop correction setup-corr

View File

@ -18,3 +18,5 @@ services:
volumes:
- wp-db:/var/lib/mysql
restart: unless-stopped
profiles:
- correction

View File

@ -0,0 +1,19 @@
services:
db-dev:
container_name: inception-db
build:
context: .
dockerfile: docker/images/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
profiles:
- dev

View File

@ -0,0 +1,9 @@
# those rules a for developement purposes
dev:
docker compose --profile dev -f $(DOCKER_CONTEXT)docker-compose.yml up -d --build
stop-dev:
docker compose --profile dev -f $(DOCKER_CONTEXT)docker-compose.yml stop
.PHONY: dev stop-dev

View File

@ -0,0 +1,27 @@
services:
nginx-dev:
container_name: inception-nginx
build:
context: .
dockerfile: docker/images/nginx/Dockerfile
networks:
- inception
environment:
- TZ=Europe/Paris
- NGINX_PHP_HOST=inception-wordp-php
- NGINX_SSL_KEY_FILE=/etc/nginx/ssl/adjoly-wp.key
- NGINX_SSL_CERT_FILE=/etc/nginx/ssl/adjoly-wp.crt
depends_on:
wordpress-php-dev:
condition: service_healthy
db-dev:
condition: service_healthy
volumes:
- wp-site:/var/www/html
- ./configs/nginx/templates-dev:/etc/nginx/templates
- ./configs/nginx/entry:/docker-entrypoint.d
ports:
- "443:443"
restart: unless-stopped
profiles:
- dev

View File

@ -0,0 +1,24 @@
volumes:
wp-site:
services:
wordpress-php-dev:
container_name: inception-wordp-php
build:
context: .
dockerfile: docker/images/wordpress/Dockerfile
networks:
- inception
depends_on:
db-dev:
condition: service_healthy
environment:
- PHP_MEMORY_LIMIT="512M"
- PHP_MAX_UPLOAD="50M"
- PHP_PORT=9000
- TZ=Europe/Paris
volumes:
- wp-site:/var/www/html
restart: unless-stopped
profiles:
- dev

View File

@ -3,14 +3,14 @@ volumes:
name: nginx-templates
driver: local
driver_opts:
device: ./configs/nginx/templates
device: $HOME/data/nginx/templates
o: "bind,ro"
type: none
nginx-entry:
name: nginx-entry
driver: local
driver_opts:
device: ./configs/nginx/entry
device: $HOME/data/nginx/entry
o: "bind,ro"
type: none
@ -41,3 +41,5 @@ services:
ports:
- "10443:443"
restart: unless-stopped
profiles:
- correction

View File

@ -0,0 +1,9 @@
# those are for production testing only do not execute in production environment
prod:
docker compose -f $(DOCKER_CONTEXT)docker-compose.yml up -d --build
stop-prod:
docker compose -f $(DOCKER_CONTEXT)docker-compose-prod.yml stop
.PHONY: prod stop-prod

View File

@ -20,3 +20,5 @@ services:
volumes:
- wp-site:/var/www/html
restart: unless-stopped
profiles:
- correction