feat: Mise en place de l'architecture
This commit is contained in:
commit
382d6fd87c
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything
|
||||
**
|
||||
|
||||
!public
|
|
@ -0,0 +1,10 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
|
@ -0,0 +1,4 @@
|
|||
DOCKER_CONTEXT=vert.weko.resilien
|
||||
NAME=vert.weko.resilien
|
||||
URL=resilien.fr
|
||||
STATS_CONTAINER=resilien-stats
|
|
@ -0,0 +1,3 @@
|
|||
public
|
||||
resources
|
||||
backups
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "themes/hugo-theme-lowtech"]
|
||||
path = themes/hugo-theme-lowtech
|
||||
url = https://git.weko.io/kosssi/hugo-theme-lowtech.git
|
|
@ -0,0 +1,4 @@
|
|||
FROM registry.weko.io/nginx-lowtech:0.0.9
|
||||
|
||||
# Copie des sources du site
|
||||
COPY public /usr/share/nginx/html
|
|
@ -0,0 +1,28 @@
|
|||
# Code source du site internet de RésiLien
|
||||
|
||||
## Le but du site
|
||||
|
||||
Le but étant de communiquer et se faire connaitre sur nos différentes offres et réalisations.
|
||||
|
||||
## Technologie
|
||||
|
||||
- Le site est créé à l'aide de l'outil de génération de site startique Open Source [Hugo](https://gohugo.io).
|
||||
- Le serveur web utilisé est [Nginx](https://www.nginx.com/)
|
||||
- La mise à jour s'éffectue avec [Directus](https://directus.io/)
|
||||
|
||||
## Tâche
|
||||
|
||||
- [ ] Mise en place du Hello World
|
||||
- [ ] Mise en place des couleurs
|
||||
|
||||
## Commandes
|
||||
|
||||
Il y a plusieurs commandes que vous pouvez visualiser à l'aide de la commande `./run`.
|
||||
|
||||
Voici les commandes pour démarrer le projet localement :
|
||||
```
|
||||
git clone https://git.weko.io/resilien/resilien.fr.git
|
||||
cd resilien.fr
|
||||
./run install
|
||||
./run dev
|
||||
```
|
|
@ -0,0 +1,16 @@
|
|||
languageCode: fr-fr
|
||||
|
||||
title: Résilien
|
||||
|
||||
theme:
|
||||
- hugo-theme-lowtech
|
||||
|
||||
defaultContentLanguage: fr
|
||||
|
||||
disableKinds:
|
||||
- taxonomy
|
||||
- term
|
||||
|
||||
disableHugoGeneratorInject: true
|
||||
|
||||
enableRobotsTXT: true
|
|
@ -0,0 +1 @@
|
|||
baseURL: http://localhost:1313/
|
|
@ -0,0 +1 @@
|
|||
baseURL: https://resilien.fr/
|
|
@ -0,0 +1 @@
|
|||
baseURL: https://staging.resilien.fr/
|
|
@ -0,0 +1,37 @@
|
|||
version: "3.8"
|
||||
|
||||
volumes:
|
||||
resilien-log:
|
||||
name: resilien-log
|
||||
resilien-stats:
|
||||
name: resilien-stats
|
||||
|
||||
services:
|
||||
resilien-prod:
|
||||
container_name: resilien-prod
|
||||
build: .
|
||||
restart: always
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.resilien.rule: "Host(`${URL}`)"
|
||||
traefik.http.routers.resilien.entrypoints: "web"
|
||||
volumes:
|
||||
- resilien-log:/var/log/nginx
|
||||
- resilien-stats:/usr/share/nginx/html/stats
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
|
||||
resilien-stats:
|
||||
container_name: resilien-stats
|
||||
image: registry.weko.io/goaccess:1.5.1
|
||||
restart: always
|
||||
volumes:
|
||||
- resilien-log:/var/log/nginx
|
||||
- resilien-stats:/usr/share/nginx/html/stats
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: traefik
|
|
@ -0,0 +1,19 @@
|
|||
version: "3.8"
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: traefik
|
||||
|
||||
services:
|
||||
resilien-staging:
|
||||
container_name: resilien-staging
|
||||
build: .
|
||||
restart: always
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.resilien-staging.rule: "Host(`staging.${URL}`)"
|
||||
traefik.http.routers.resilien-staging.entrypoints: "web"
|
||||
volumes:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
|
@ -0,0 +1,24 @@
|
|||
#!/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
|
||||
|
||||
. ./.env
|
||||
. ./themes/hugo-theme-lowtech/scripts/run
|
||||
|
||||
echo " ____ _ _ _ "
|
||||
echo "| _ \ ___ ___(_) | (_) ___ _ __ "
|
||||
echo "| |_) / _ \/ __| | | | |/ _ \ '_ \ "
|
||||
echo "| _ < __/\__ \ | |___| | __/ | | |"
|
||||
echo "|_| \_\___||___/_|_____|_|\___|_| |_|"
|
||||
echo
|
||||
echo
|
||||
|
||||
if [ $# -ge 1 ]; then
|
||||
$@
|
||||
else
|
||||
help_generic
|
||||
fi
|
||||
|
||||
end
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 8ca72479d4e6219f66cb721712c6a1f042df1f7b
|
Loading…
Reference in New Issue