File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 11services :
2+ nginx :
3+ image : nginx:alpine
4+ restart : unless-stopped
5+ ports :
6+ - " 80:80"
7+ volumes :
8+ - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
9+ depends_on :
10+ - api
11+
212 postgres :
313 image : postgres:16-alpine
414 restart : unless-stopped
Original file line number Diff line number Diff line change 1+ server {
2+ listen 80;
3+ server_name _;
4+
5+ # API proxy
6+ location / {
7+ proxy_pass http://api:3000;
8+ proxy_http_version 1.1;
9+ proxy_set_header Upgrade $http_upgrade;
10+ proxy_set_header Connection 'upgrade';
11+ proxy_set_header Host $host;
12+ proxy_set_header X-Real-IP $remote_addr;
13+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
14+ proxy_set_header X-Forwarded-Proto $scheme;
15+ proxy_cache_bypass $http_upgrade;
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments