diff --git a/docker-compose.yaml b/docker-compose.yaml index 5dc3c19..9daa01a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,5 +1,5 @@ services: - server: + backend: build: dockerfile: Dockerfile container_name: server @@ -12,7 +12,7 @@ services: image: nginx:latest container_name: nginx depends_on: - - server + - backend ports: - "80:80" networks: diff --git a/nginx.conf b/ngnix.conf similarity index 52% rename from nginx.conf rename to ngnix.conf index 33f337b..8b14306 100644 --- a/nginx.conf +++ b/ngnix.conf @@ -1,9 +1,9 @@ server { - listen 80 default_server; - # server_name test.byteccny.com; + listen 80; + server_name test.byteccny.com; location / { - proxy_pass http://server:3000/; + proxy_pass http://server:3000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; }