Skip to content

Commit 6ba5a03

Browse files
committed
deploy
1 parent a7244d2 commit 6ba5a03

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

docker-compose.yml

Whitespace-only changes.

nginx/Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Official Nginx image (Yes, in this article I always use the `latest`. Kill me!)
2+
FROM nginx:latest
3+
4+
# Copy Nginx configuration file to the container
5+
COPY nginx.conf /etc/nginx/nginx.conf
6+
7+
# Expose port 80
8+
EXPOSE 80
9+

nginx/nginx.conf

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#nginx/nginx.conf
2+
events {
3+
worker_connections 1024;
4+
}
5+
http {
6+
server_tokens off;
7+
server {
8+
listen 80;
9+
10+
11+
location / {
12+
proxy_set_header X-Forwarded-For $remote_addr;
13+
proxy_set_header Host $http_host;
14+
proxy_pass http://api:8080/;
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)