Created a new volume for copying the custom configuration files.

This commit is contained in:
eroncero
2025-08-15 19:48:44 +02:00
parent 3ab3f2175e
commit 31f0dd7913
3 changed files with 7 additions and 0 deletions

0
README.md Normal file
View File

View File

@@ -12,6 +12,7 @@ services:
restart: unless-stopped restart: unless-stopped
hostname: nginx-srv hostname: nginx-srv
volumes: volumes:
- ./mnt/place-config/etc/nginx:/mnt/place-config/etc/nginx # Config ready to be copied into the container.
- ./nginx-srv/var/www:/var/www # Webpage public html. - ./nginx-srv/var/www:/var/www # Webpage public html.
- ./nginx-srv/etc/letsencrypt:/etc/letsencrypt - ./nginx-srv/etc/letsencrypt:/etc/letsencrypt
- ./multi-php-fpm-srv/run/php:/run/php # Socket files dir. It will be mounted and shared from the PHP container. - ./multi-php-fpm-srv/run/php:/run/php # Socket files dir. It will be mounted and shared from the PHP container.
@@ -26,6 +27,7 @@ services:
environment: environment:
- PHP_VERSIONS=${PHP_VERSIONS} # Inherits from .env - PHP_VERSIONS=${PHP_VERSIONS} # Inherits from .env
volumes: volumes:
- ./mnt/place-config/etc/php/8.2:/mnt/place-config/etc/php/8.2 # Config ready to be copied into the container.
- ./multi-php-fpm-srv/run/php:/run/php - ./multi-php-fpm-srv/run/php:/run/php
- ./mariadb-srv/run/mysql:/run/mysqld # php-mysql should be able connecting to the MariaDB socket. - ./mariadb-srv/run/mysql:/run/mysqld # php-mysql should be able connecting to the MariaDB socket.
@@ -37,6 +39,7 @@ services:
restart: unless-stopped restart: unless-stopped
hostname: mariadb-srv hostname: mariadb-srv
volumes: volumes:
- ./mnt/place-config/etc/mysql:/mnt/place-config/etc/mysql # Config ready to be copied into the container.
- ./mariadb-srv/var/lib/mysql:/var/lib/mysql # Databases - ./mariadb-srv/var/lib/mysql:/var/lib/mysql # Databases
- ./mariadb-srv/etc/mysql/conf.d:/etc/mysql/conf.d/ # Custom config that overrides default one. - ./mariadb-srv/etc/mysql/conf.d:/etc/mysql/conf.d/ # Custom config that overrides default one.
- ./mariadb-srv/run/mysql/:/run/mysqld # Socket - ./mariadb-srv/run/mysql/:/run/mysqld # Socket

View File

@@ -0,0 +1,4 @@
#!/bin/sh
# /mnt/place-config will be mounted/defined in docker-compose.yaml
cp -r /mnt/place-config/etc/nginx/sites-available /etc/nginx/sites-available