File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ FROM nginx:alpine
34
34
35
35
ARG ASSETS_PREFIX=assets
36
36
37
- COPY --from=builder /build/nginx.conf /etc/nginx/nginx.conf
37
+ ENV NGINX_RESOLVER=8.8.8.8
38
+
39
+ COPY --from=builder /build/nginx.conf /etc/nginx/nginx.conf.template
38
40
COPY --from=builder /build/wallets-v2.proxy.json /usr/share/nginx/html/wallets-v2.json
39
41
COPY --from=builder /build/wallets.json /usr/share/nginx/html/wallets.json
40
42
COPY assets/ /var/www/predownloaded_images/${ASSETS_PREFIX}/
@@ -45,4 +47,5 @@ RUN mkdir -p /var/cache/nginx/image_cache && \
45
47
46
48
EXPOSE 80
47
49
48
- CMD ["nginx" , "-g" , "daemon off;" ]
50
+ CMD envsubst '${NGINX_RESOLVER}' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf && \
51
+ nginx -g "daemon off;"
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ version: '3.8'
3
3
services :
4
4
ton-wallets :
5
5
image : ${IMAGE:-ton-wallets-local}
6
+ environment :
7
+ NGINX_RESOLVER : 1.1.1.1
6
8
ports :
7
9
- " ${TEST_PORT:-8088}:80"
8
10
healthcheck :
Original file line number Diff line number Diff line change 21
21
# Send access logs to stdout
22
22
access_log /dev/stdout main_with_cache;
23
23
24
- resolver 192.168.65.7 valid=3s ;
25
- resolver_timeout 1s ;
24
+ resolver ${NGINX_RESOLVER} valid=5m ;
25
+ resolver_timeout 3s ;
26
26
27
27
proxy_cache_path /var/cache/nginx/image_cache
28
28
levels=1:2
You can’t perform that action at this time.
0 commit comments