Skip to content

Commit

Permalink
adding docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Fahad authored and Fahad committed Nov 18, 2024
1 parent 3b5556e commit 6b15480
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
services:
backend:
build:
dockerfile: Dockerfile
container_name: server
ports:
- "3000:3000"
networks:
- app-network

nginx:
image: nginx:latest
container_name: nginx
depends_on:
- backend
ports:
- "80:80"
networks:
- app-network
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf

networks:
app-network:
driver: bridge
10 changes: 10 additions & 0 deletions ngnix.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server {
listen 80;
server_name test.byteccny.com;

location / {
proxy_pass http://server:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}

0 comments on commit 6b15480

Please sign in to comment.