The VIRTUAL_HOST environment variable was removed from the docker-compose.yml file. This change was made to streamline the file and ensure only necessary configurations are present. The system's operation should not be affected as VIRTUAL_HOST is not essential for the process flow.
29 lines
530 B
YAML
29 lines
530 B
YAML
version: '3.3'
|
|
|
|
services:
|
|
php-fpm:
|
|
build:
|
|
context: ./php-fpm
|
|
volumes:
|
|
- ./src:/var/www/html
|
|
networks:
|
|
- nginx-proxy
|
|
restart: always
|
|
|
|
nginx:
|
|
image: nginx:latest
|
|
environment:
|
|
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST}
|
|
- VIRTUAL_PORT=${VIRTUAL_PORT}
|
|
volumes:
|
|
- ./src:/var/www/html
|
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
|
|
depends_on:
|
|
- php-fpm
|
|
networks:
|
|
- nginx-proxy
|
|
restart: always
|
|
|
|
networks:
|
|
nginx-proxy:
|
|
external: true |