diff --git a/docker-compose.yml b/docker-compose.yml index d5bbf9d..4983068 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -39,5 +39,16 @@ services: - .:/app - ./logs:/app/logs + nginx: + image: nginx:latest + restart: always + ports: + - "80:80" + volumes: + - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro + depends_on: + - site + + volumes: postgres-data: diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 63ed1e4..dbda337 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -9,10 +9,10 @@ events { http { server { listen 80; - server_name fckngdev.space; + server_name localhost; location / { - proxy_pass http://87.251.87.90:8004/; + proxy_pass http://site:8004/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;