Skip to content

Commit

Permalink
Merge pull request #34 from huskynz/dev
Browse files Browse the repository at this point in the history
Add docker compose and nginx.conf
  • Loading branch information
Husky-Devel authored Aug 17, 2024
2 parents f591b10 + 284d9b0 commit cd5e3a4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: '3.8'

services:
app:
image: ghcr.io/huskynz/10:master
container_name: huskynz_msite
ports:
- "4321:4321"
networks:
- app-network

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

networks:
app-network:
driver: bridge
15 changes: 15 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
events {}

http {
server {
listen 80;

location / {
proxy_pass http://huskynz_msite:4321;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}

0 comments on commit cd5e3a4

Please sign in to comment.