-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
services:
frontend:
image: nginx:latest
command:
- /bin/sh
- -ec
- |
until getent ahostsv4 hugo >/dev/null 2>&1 \
&& getent ahostsv4 deckhouse.io >/dev/null 2>&1 \
&& getent ahostsv4 deckhouse.ru >/dev/null 2>&1; do
echo "Waiting for Docker DNS..."
sleep 1
done
(
for url in \
https://deckhouse.io/includes/footer.html \
https://deckhouse.ru/includes/footer.html; do
until curl -k -fsS --max-time 10 -o /dev/null "$$url" >/dev/null; do
echo "Warming external upstream $$url..."
sleep 1
done
done
) &
exec nginx -g 'daemon off;'
volumes:
- ".werf/nginx-local.conf:/etc/nginx/nginx.conf:ro"
ports:
- "80:80"
depends_on:
hugo:
condition: service_healthy
hugo:
image: hugomods/hugo:debian-ci-0.150.1
user: "${UID:-1000}:${GID:-1000}"
environment:
- HUGO_ENABLEGITINFO=false
command: server --renderToMemory --printPathWarnings --printI18nWarnings --bind=0.0.0.0 -p 1313 --liveReloadPort 80 --noBuildLock --enableGitInfo=false
ports:
- "1313:1313"
- "1314:1314"
volumes:
- "./:/src"
- "../hugo-web-product-module/:/hugo-web-product-module:ro"
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:1313 > /dev/null || exit 1"]
interval: 5s
timeout: 2s
retries: 10
start_period: 1s