feat(devops): removed stuff and added jwt

This commit is contained in:
Maieul BOYER 2026-01-13 17:38:14 +01:00 committed by Maix0
parent d9a68771a6
commit d0e787e2c7
5 changed files with 43 additions and 38 deletions

View file

@ -51,9 +51,7 @@ services:
volumes:
# if you need to share files with nginx, you do it here.
- static-volume:/volumes/static
environment:
# this can stay the same for developpement. This is an alias to `localhost`
- NGINX_DOMAIN=local.maix.me
env_file: .env
logging:
driver: gelf
options:
@ -76,8 +74,7 @@ services:
- sqlite-volume:/volumes/database
- static-volume:/volumes/static
- ./src/auth/config:/config
environment:
- JWT_SECRET=KRUGKIDROVUWG2ZAMJZG653OEBTG66BANJ2W24DTEBXXMZLSEB2GQZJANRQXU6JA
env_file: .env
logging:
driver: gelf
options:
@ -102,8 +99,7 @@ services:
volumes:
- sqlite-volume:/volumes/database
- static-volume:/volumes/static
environment:
- JWT_SECRET=KRUGKIDROVUWG2ZAMJZG653OEBTG66BANJ2W24DTEBXXMZLSEB2GQZJANRQXU6JA
env_file: .env
logging:
driver: gelf
options:
@ -125,18 +121,15 @@ services:
restart: always
networks:
- app
env_file: .env
volumes:
- sqlite-volume:/volumes/database
- static-volume:/volumes/static
environment:
- JWT_SECRET=KRUGKIDROVUWG2ZAMJZG653OEBTG66BANJ2W24DTEBXXMZLSEB2GQZJANRQXU6JA
- PROVIDER_FILE=/extra/providers.toml
- SESSION_MANAGER=${SESSION_MANAGER}
# logging:
# driver: gelf
# options:
# gelf-address: "udp://127.0.0.1:12201"
# tag: "{{.Name}}"
logging:
driver: gelf
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "{{.Name}}"
###############
# PONG #
@ -156,8 +149,7 @@ services:
volumes:
- sqlite-volume:/volumes/database
- static-volume:/volumes/static
environment:
- JWT_SECRET=KRUGKIDROVUWG2ZAMJZG653OEBTG66BANJ2W24DTEBXXMZLSEB2GQZJANRQXU6JA
env_file: .env
###############
# USER #
@ -177,8 +169,7 @@ services:
volumes:
- sqlite-volume:/volumes/database
- static-volume:/volumes/static
environment:
- JWT_SECRET=KRUGKIDROVUWG2ZAMJZG653OEBTG66BANJ2W24DTEBXXMZLSEB2GQZJANRQXU6JA
env_file: .env
logging:
driver: gelf
options:
@ -205,11 +196,10 @@ services:
- ./monitoring/grafana/dashboards-config:/etc/grafana/provisioning/dashboards
- ./monitoring/grafana/dashboards:/var/lib/grafana/dashboards
- grafana-data:/var/lib/grafana
env_file: .env
environment:
# this can stay the same for developpement. This is an alias to `localhost`
- NGINX_DOMAIN=local.maix.me
- GF_LOG_LEVEL=warn
- GF_SERVER_ROOT_URL=https://local.maix.me:9090/grafana/
- GF_SERVER_ROOT_URL=https:/${NGINX_DOMAIN}/:9090/grafana/
- GF_SECURITY_ADMIN_USER=${GRAFANA_ADMIN_USER}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASS}
logging:
@ -238,6 +228,7 @@ services:
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "{{.Name}}"
env_file: .env
healthcheck:
test: ["CMD", "wget", "--quiet", "--spider", "http://localhost:9090/-/healthy"]
interval: 30s
@ -252,6 +243,7 @@ services:
container_name: mon-cadvisor
command:
- '-url_base_prefix=/cadvisor'
env_file: .env
environment:
- CADVISOR_HEALTHCHECK_URL=http://localhost:8080/cadvisor/healthz
volumes:
@ -277,6 +269,7 @@ services:
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "{{.Name}}"
env_file: .env
healthcheck:
test: ["CMD", "wget", "--quiet", "--spider", "http://localhost:9115/-/healthy"]
interval: 30s
@ -295,10 +288,10 @@ services:
container_name: log-elasticsearch
networks:
- monitoring
env_file: .env
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
volumes:
- elastic-data:/usr/share/elasticsearch/data
- ./logs/elasticsearch:/setup
@ -323,6 +316,7 @@ services:
ports:
- "12201:12201/udp"
restart: unless-stopped
env_file: .env
healthcheck:
test: ["CMD", "curl", "-f", "-s", "localhost:9600"]
interval: 30s
@ -338,9 +332,10 @@ services:
networks:
- monitoring
- app
env_file: .env
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- SERVER_PUBLICBASEURL=https://local.maix.me:9090/kibana
- SERVER_PUBLICBASEURL=https://${NGINX_DOMAIN}:9090/kibana
- SERVER_BASEPATH=/kibana
- SERVER_REWRITEBASEPATH=true
- ELASTICSEARCH_USERNAME=elastic