-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fahad
authored and
Fahad
committed
Nov 18, 2024
1 parent
3b5556e
commit 6b15480
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |