fix: Display stats
This commit is contained in:
parent
14d7d729df
commit
6dd821b623
|
@ -1,7 +1,7 @@
|
||||||
TIMEZONE=Europe/Paris
|
TIMEZONE=Europe/Paris
|
||||||
NAME=histoiredunpied
|
NAME=histoiredunpied
|
||||||
URL=histoiredunpied.com
|
URL=histoiredunpied.com
|
||||||
IMAGE=kosssi/nginx-lowtech:0.0.2
|
IMAGE=registry.lamelio.fr/nginx-lowtech:0.0.3
|
||||||
HUGO_VERSION=0.67.1
|
HUGO_VERSION=0.67.1
|
||||||
|
|
||||||
LOG_PATH=/var/log/nginx/access.log
|
LOG_PATH=/var/log/nginx/access.log
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM registry.lamelio.fr/kosssi/nginx-lowtech:0.0.2
|
FROM registry.lamelio.fr/nginx-lowtech:0.0.3
|
||||||
|
|
||||||
# Copie des sources du site
|
# Copie des sources du site
|
||||||
COPY public /usr/share/nginx/html
|
COPY public /usr/share/nginx/html
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# -e Exit immediately if a command exits with a non-zero status.
|
||||||
|
# -u Treat unset variables as an error when substituting.
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
START=`date +%s`
|
||||||
|
|
||||||
|
echo "😎 Start build histoiredunpied"
|
||||||
|
|
||||||
|
echo "- build image 🚀"
|
||||||
|
docker build . -t kosssi/histoiredunpied
|
||||||
|
docker tag kosssi/histoiredunpied registry.lamelio.fr/histoiredunpied
|
||||||
|
docker push registry.lamelio.fr/histoiredunpied
|
||||||
|
|
||||||
|
END=`date +%s`
|
||||||
|
echo "✨ Done in $((END-START))s"
|
|
@ -3,8 +3,8 @@ version: "3.7"
|
||||||
volumes:
|
volumes:
|
||||||
histoiredunpied-log-volume:
|
histoiredunpied-log-volume:
|
||||||
name: histoiredunpied-log-volume
|
name: histoiredunpied-log-volume
|
||||||
histoiredunpied-src:
|
histoiredunpied-stats:
|
||||||
name: histoiredunpied-src
|
name: histoiredunpied-stats
|
||||||
|
|
||||||
services:
|
services:
|
||||||
histoiredunpied-autopush:
|
histoiredunpied-autopush:
|
||||||
|
@ -28,7 +28,7 @@ services:
|
||||||
- histoiredunpied-autopush
|
- histoiredunpied-autopush
|
||||||
volumes:
|
volumes:
|
||||||
- histoiredunpied-log-volume:/var/log/nginx
|
- histoiredunpied-log-volume:/var/log/nginx
|
||||||
- histoiredunpied-src:/usr/share/nginx/html
|
- histoiredunpied-stats:/usr/share/nginx/html/stats
|
||||||
labels:
|
labels:
|
||||||
com.centurylinklabs.watchtower.enable: true
|
com.centurylinklabs.watchtower.enable: true
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ services:
|
||||||
- TZ=${TIMEZONE}
|
- TZ=${TIMEZONE}
|
||||||
volumes:
|
volumes:
|
||||||
- histoiredunpied-log-volume:/var/log/nginx
|
- histoiredunpied-log-volume:/var/log/nginx
|
||||||
|
- histoiredunpied-stats:/usr/share/nginx/html/stats
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "true"
|
traefik.enable: "true"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue