🏗️」 wip: moved networks and volumes to another file

This commit is contained in:
2025-07-22 15:23:37 +02:00
parent 12445e22e4
commit 1a1555f0c1
5 changed files with 15 additions and 33 deletions

17
3
View File

@ -1,17 +0,0 @@
global:
scrape_interval: 30s
# alerting:
# alertmanagers:
# - static_configs:
# - targets:
# - alertmanager:9093
scrape_configs:
- job_name: 'prometheus'
metrics_path: '/prometheus/metrics'
basic_auth:
username: admin
password: PROM_ADMIN_PASSWD
static_configs:
- targets: ['localhost:9090']

View File

@ -2,6 +2,7 @@ name: ft_transcendence
include: include:
- ./volumes.yml - ./volumes.yml
- ./networks.yml
- ./monitoring/compose.yml - ./monitoring/compose.yml
services: services:
@ -53,15 +54,3 @@ services:
- API_TARGET=auth - API_TARGET=auth
- JWT_SECRET=${JWT_SECRET} - JWT_SECRET=${JWT_SECRET}
restart: unless-stopped restart: unless-stopped
networks:
front:
name: transcendence-front
back:
name: transcendence-back
volumes:
db-auth:
name: transcendence-api-auth-db
db-user:
name: transcendence-api-user-db

View File

@ -1,6 +1,2 @@
include: include:
- ./prometheus/compose.yml - ./prometheus/compose.yml
networks:
prom:
prom-exporter:

9
docker/networks.yml Normal file
View File

@ -0,0 +1,9 @@
networks:
front:
name: transcendence-front
back:
name: transcendence-back
prom:
name: transcendence-prom
prom-exporter:
name: transcendence-prom-exporter

View File

@ -1,2 +1,7 @@
volumes: volumes:
prometheus_data: prometheus_data:
name: transcendence-prom-data
db-auth:
name: transcendence-api-auth-db
db-user:
name: transcendence-api-user-db