Skip to content

Commit

Permalink
finalized docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
LordFarquaadtheCreator committed Nov 19, 2024
1 parent 435aca6 commit aebc31a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
services:
backend:
server:
build:
dockerfile: Dockerfile
container_name: server
Expand All @@ -12,7 +12,7 @@ services:
image: nginx:latest
container_name: nginx
depends_on:
- backend
- server
ports:
- "80:80"
networks:
Expand Down
6 changes: 3 additions & 3 deletions ngnix.conf → nginx.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
server {
listen 80;
server_name test.byteccny.com;
listen 80 default_server;
# 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;
}
Expand Down

0 comments on commit aebc31a

Please sign in to comment.