fix: Display stats
This commit is contained in:
parent
14d7d729df
commit
6dd821b623
|
@ -1,7 +1,7 @@
|
|||
TIMEZONE=Europe/Paris
|
||||
NAME=histoiredunpied
|
||||
URL=histoiredunpied.com
|
||||
IMAGE=kosssi/nginx-lowtech:0.0.2
|
||||
IMAGE=registry.lamelio.fr/nginx-lowtech:0.0.3
|
||||
HUGO_VERSION=0.67.1
|
||||
|
||||
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
|
||||
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:
|
||||
histoiredunpied-log-volume:
|
||||
name: histoiredunpied-log-volume
|
||||
histoiredunpied-src:
|
||||
name: histoiredunpied-src
|
||||
histoiredunpied-stats:
|
||||
name: histoiredunpied-stats
|
||||
|
||||
services:
|
||||
histoiredunpied-autopush:
|
||||
|
@ -28,7 +28,7 @@ services:
|
|||
- histoiredunpied-autopush
|
||||
volumes:
|
||||
- histoiredunpied-log-volume:/var/log/nginx
|
||||
- histoiredunpied-src:/usr/share/nginx/html
|
||||
- histoiredunpied-stats:/usr/share/nginx/html/stats
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: true
|
||||
|
||||
|
@ -39,6 +39,7 @@ services:
|
|||
- TZ=${TIMEZONE}
|
||||
volumes:
|
||||
- histoiredunpied-log-volume:/var/log/nginx
|
||||
- histoiredunpied-stats:/usr/share/nginx/html/stats
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
|
||||
|
|
Loading…
Reference in New Issue