Created a new volume for copying the custom configuration files.
This commit is contained in:
@@ -12,6 +12,7 @@ services:
|
||||
restart: unless-stopped
|
||||
hostname: nginx-srv
|
||||
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/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.
|
||||
@@ -26,6 +27,7 @@ services:
|
||||
environment:
|
||||
- PHP_VERSIONS=${PHP_VERSIONS} # Inherits from .env
|
||||
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
|
||||
- ./mariadb-srv/run/mysql:/run/mysqld # php-mysql should be able connecting to the MariaDB socket.
|
||||
|
||||
@@ -37,6 +39,7 @@ services:
|
||||
restart: unless-stopped
|
||||
hostname: mariadb-srv
|
||||
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/etc/mysql/conf.d:/etc/mysql/conf.d/ # Custom config that overrides default one.
|
||||
- ./mariadb-srv/run/mysql/:/run/mysqld # Socket
|
||||
|
4
nginx-srv/project/entrypoint/copy-configs.sh
Normal file
4
nginx-srv/project/entrypoint/copy-configs.sh
Normal 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
|
Reference in New Issue
Block a user