Skip to content

Commit

Permalink
Merge pull request #43 from ClothingStoreService/chore/adjust-nginx-i…
Browse files Browse the repository at this point in the history
…mage

chore: docker-compose.yml에 nginx 도 활성화
  • Loading branch information
Ogu1208 authored Sep 5, 2024
2 parents e115880 + 09f00c5 commit 261dc33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ services:
- "8080:8080"
restart: on-failure

# nginx:
# container_name: nginx
# image: ${DOCKER_REPOSITORY_NGINX}:latest
# ports:
# - 80:80
# depends_on:
# - application
nginx:
container_name: nginx
image: ${DOCKER_REPOSITORY_NGINX}:latest
ports:
- 80:80
depends_on:
- application
2 changes: 1 addition & 1 deletion nginx/conf.d/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ server {
access_log off;

location / {
proxy_pass http://clothstar:8080;
proxy_pass http://localhost:8080;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
Expand Down

0 comments on commit 261dc33

Please sign in to comment.