I have a problem with configuring nginx in docker containers.
docker-compose.yml:
version: '3' services: nginx: build: ./nginx ports: - 80:80 - 443:443 links: - php php: build: ./php volumes: - ../domains:/var/www/html ports: - 82:80 depends_on: - db ... dockerfile for nginx:
FROM nginx COPY nginx.conf /etc/nginx/nginx.conf nginx.conf:
user www-data; worker_processes 1; events { worker_connections 1024; } http { server { listen 80; server_name local.test1.ru; root ../domains/test1.ru/; location / { proxy_pass http://php/test1.ru/; proxy_set_header Host $host; } } } when I follow the path: local.test1.ru/wp-admin , then it redirects me to local.test1.ru/test1.ru/wp-admin , although I have to stay on the old one. what could be the problem?