File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,13 @@ RUN set -ex && \
28
28
mkdir -p /var/cache/nginx && \
29
29
chown -R nginx.nginx /var/cache/nginx && \
30
30
#
31
+ # Create default pid dir
32
+ mkdir -p /var/run/nginx && \
33
+ #
31
34
# Forward request and error logs to docker log collector
32
35
ln -sf /dev/stdout /var/log/nginx/access.log && \
33
36
ln -sf /dev/stderr /var/log/nginx/error.log
34
37
35
- ADD nginx_conf /etc/nginx/
36
-
37
38
EXPOSE 80
38
39
39
40
STOPSIGNAL SIGTERM
Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ services:
93
93
depends_on :
94
94
- wordpress
95
95
volumes :
96
+ - ./apps/nginx/nginx_conf/nginx.conf:/etc/nginx/nginx.conf
97
+ - ./apps/nginx/nginx_conf/conf.d/default.conf:/etc/nginx/conf.d/default.conf
96
98
- wp_data:/var/www/html
97
99
networks :
98
100
- nw-backend
You can’t perform that action at this time.
0 commit comments