File tree 6 files changed +22
-20
lines changed
6 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,10 @@ services:
15
15
- node_modules
16
16
- action : rebuild
17
17
path : package.json
18
+ nginx :
19
+ image : nginx:latest
20
+ build :
21
+ context : docker/nginx
22
+ dockerfile : ./Dockerfile
23
+ ports :
24
+ - " 80:80"
Original file line number Diff line number Diff line change
1
+ FROM nginx:latest
2
+
3
+ RUN rm -f /etc/nginx/conf.d/*
4
+ COPY conf.d/ /etc/nginx/conf.d/
5
+ COPY nginx.conf /etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
1
+ server {
2
+ listen 80;
3
+ server_name local.akane.yaken.org;
4
+
5
+ location / {
6
+ proxy_pass http://akane-next:3000/;
7
+ }
8
+ }
Original file line number Diff line number Diff line change 1
-
2
1
user nginx;
3
2
worker_processes auto;
4
3
5
4
error_log /var/log/nginx/error.log notice ;
6
5
pid /var/run/nginx.pid;
7
6
8
-
9
7
events {
10
8
worker_connections 2048 ;
11
9
multi_accept on ;
29
27
30
28
keepalive_timeout 65 ;
31
29
30
+ # コメントアウトしているが、問題がなければ有効にしてもいいだろう
32
31
#gzip on;
33
32
34
33
include /etc/nginx/conf.d/*.conf;
35
- }
34
+ }
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments