version: '3.2'
services:
nginx:
build:
context: ..
dockerfile: docker/nginx/Dockerfile
restart: always
working_dir: /app/www
volumes:
- ../app/www:/app/www
- ./nginx/log:/var/log/nginx
networks:
- network
- hosts
environment:
VIRTUAL_HOST: myhost.loc
app:
build:
context: ..
dockerfile: docker/app/Dockerfile
restart: always
working_dir: /app/www
volumes:
- ../app:/app
- ~/.ssh/id_rsa:/root/.ssh/id_rsa
- ~/.ssh/id_rsa.pub:/root/.ssh/id_rsa.pub
- ./app/log:/var/log/php
networks:
- network
- api
Да, там по какой-то причине логи nginx со скрина.