Add build properties

This commit is contained in:
eroncero
2025-08-05 10:57:54 +02:00
parent f1c348f974
commit 2f847a6dbe

View File

@@ -1,7 +1,6 @@
services: services:
nginx-srv: nginx-srv:
image: eroncero/nginx-srv:latest image: eroncero/nginx-srv:latest
hostname: nginx-srv
build: build:
context: ./nginx-srv context: ./nginx-srv
dockerfile: Dockerfile dockerfile: Dockerfile
@@ -11,6 +10,7 @@ services:
- "${NGINX_HTTPS_IPV4_HOST}:${NGINX_HTTPS_IPV4_PORT}:${NGINX_CONTAINER_HTTPS_PORT}" - "${NGINX_HTTPS_IPV4_HOST}:${NGINX_HTTPS_IPV4_PORT}:${NGINX_CONTAINER_HTTPS_PORT}"
- "${NGINX_HTTPS_IPV6_HOST}:${NGINX_HTTPS_IPV6_PORT}:${NGINX_CONTAINER_HTTPS_PORT}" - "${NGINX_HTTPS_IPV6_HOST}:${NGINX_HTTPS_IPV6_PORT}:${NGINX_CONTAINER_HTTPS_PORT}"
restart: unless-stopped restart: unless-stopped
hostname: nginx-srv
volumes: volumes:
- ./nginx-srv/etc/nginx/sites-available:/etc/nginx/sites-available - ./nginx-srv/etc/nginx/sites-available:/etc/nginx/sites-available
- ./nginx-srv/var/www:/var/www - ./nginx-srv/var/www:/var/www
@@ -19,8 +19,11 @@ services:
multi-php-fpm: multi-php-fpm:
image: eroncero/multi-php-fpm image: eroncero/multi-php-fpm
hostname: multi-php-fpm build:
context: ./multi-php-fpm
dockerfile: Dockerfile
restart: unless-stopped restart: unless-stopped
hostname: multi-php-fpm
environment: environment:
- PHP_VERSIONS=${PHP_VERSIONS} # Inherits from .env - PHP_VERSIONS=${PHP_VERSIONS} # Inherits from .env
volumes: volumes:
@@ -30,8 +33,11 @@ services:
mariadb-srv: mariadb-srv:
image: eroncero/mariadb-srv:latest image: eroncero/mariadb-srv:latest
hostname: mariadb-srv build:
context: ./mariadb-srv
dockerfile: Dockerfile
restart: unless-stopped restart: unless-stopped
hostname: mariadb-srv
volumes: volumes:
- ./mariadb-srv/var/lib/mysql:/var/lib/mysql - ./mariadb-srv/var/lib/mysql:/var/lib/mysql
- ./mariadb-srv/etc/mysql:/etc/mysql - ./mariadb-srv/etc/mysql:/etc/mysql