The version of docker-compose was downgraded from 3.8 to 3.3 in the docker-compose.yml file due to compatibility issues.
29 lines
522 B
YAML
29 lines
522 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:
|
|
- VIRTUAL_HOST=${VIRTUAL_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 |