Files
lemp-dockerized/docker-compose.yaml
2025-08-04 12:21:45 +02:00

39 lines
1.4 KiB
YAML

services:
nginx-srv:
image: eroncero/nginx-srv:latest
hostname: nginx-srv
build:
context: ./nginx-srv
dockerfile: Dockerfile
ports:
- "${NGINX_HTTP_IPV4_HOST}:${NGINX_HTTP_IPV4_PORT}:${NGINX_CONTAINER_HTTP_PORT}"
- "${NGINX_HTTP_IPV6_HOST}:${NGINX_HTTP_IPV6_PORT}:${NGINX_CONTAINER_HTTP_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}"
restart: unless-stopped
volumes:
- ./nginx-srv/etc/nginx/sites-available:/etc/nginx/sites-available
- ./nginx-srv/var/www:/var/www
- ./multi-php-fpm/run/php:/run/php # Socket files dir. It will be mounted and shared from the PHP container.
- ./nginx-srv/etc/letsencrypt:/etc/letsencrypt
multi-php-fpm:
image: eroncero/multi-php-fpm
hostname: multi-php-fpm
restart: unless-stopped
environment:
- PHP_VERSIONS=${PHP_VERSIONS} # Inherits from .env
volumes:
- ./multi-php-fpm/etc/php:/etc/php
- ./multi-php-fpm/run/php:/run/php
- ./mariadb-srv/run/mysql:/run/mysqld
mariadb-srv:
image: eroncero/mariadb-srv:latest
hostname: mariadb-srv
restart: unless-stopped
volumes:
- ./mariadb-srv/var/lib/mysql:/var/lib/mysql
- ./mariadb-srv/etc/mysql:/etc/mysql
- ./mariadb-srv/run/mysql/:/run/mysqld