add CI/CD workflows, production docker-compose, and update dev compose with Gitea registry and monitoring improvements
This commit is contained in:
1 parent
df7a1b33cc
commit
6995763ccb
7 files changed
+580
-5
No files matched your search
+26
-4
@@ -2,6 +2,7 @@ version: "3.9"
|
||||
|
||||
services:
|
||||
playout:
|
||||
image: ${GITEA_REGISTRY_URL:-git.allucanget.biz}/${GITEA_REGISTRY_NAMESPACE:-zwitschi/linearvoid}/playout:latest
|
||||
build:
|
||||
context: ./backend/playout
|
||||
dockerfile: Dockerfile
|
||||
@@ -25,6 +26,7 @@ services:
|
||||
start_period: 10s
|
||||
|
||||
chat:
|
||||
image: ${GITEA_REGISTRY_URL:-git.allucanget.biz}/${GITEA_REGISTRY_NAMESPACE:-zwitschi/linearvoid}/chat:latest
|
||||
build:
|
||||
context: ./backend/chat
|
||||
dockerfile: Dockerfile
|
||||
@@ -35,7 +37,7 @@ services:
|
||||
ports:
|
||||
- "${CHAT_PORT:-3000}:3000"
|
||||
volumes:
|
||||
- ./data/chat:/app:rw # SQLite database and logs
|
||||
- ./data/chat:/app:rw
|
||||
networks:
|
||||
- linearvoid-net
|
||||
depends_on:
|
||||
@@ -49,6 +51,7 @@ services:
|
||||
start_period: 10s
|
||||
|
||||
nginx:
|
||||
image: ${GITEA_REGISTRY_URL:-git.allucanget.biz}/${GITEA_REGISTRY_NAMESPACE:-zwitschi/linearvoid}/nginx:latest
|
||||
build:
|
||||
context: ./infrastructure/nginx
|
||||
dockerfile: Dockerfile
|
||||
@@ -82,31 +85,48 @@ services:
|
||||
environment:
|
||||
POSTGRES_DB: linearvoid
|
||||
POSTGRES_USER: linearvoid
|
||||
POSTGRES_PASSWORD: linearvoid
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-linearvoid}
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- linearvoid-net
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus
|
||||
image: prom/prometheus:latest
|
||||
container_name: linearvoid-prometheus
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
- prometheus-data:/prometheus
|
||||
ports:
|
||||
- "9090:9090"
|
||||
networks:
|
||||
- linearvoid-net
|
||||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
- "--storage.tsdb.path=/prometheus"
|
||||
- "--web.console.libraries=/etc/prometheus/console_libraries"
|
||||
- "--web.console.templates=/etc/prometheus/consoles"
|
||||
- "--web.enable-lifecycle"
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana
|
||||
image: grafana/grafana:latest
|
||||
container_name: linearvoid-grafana
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3001:3000"
|
||||
volumes:
|
||||
- grafana-data:/var/lib/grafana
|
||||
- ./monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards
|
||||
- ./monitoring/grafana/datasources:/etc/grafana/provisioning/datasources
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_USER=admin
|
||||
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD:-admin}
|
||||
- GF_USERS_ALLOW_SIGN_UP=false
|
||||
networks:
|
||||
- linearvoid-net
|
||||
depends_on:
|
||||
- prometheus
|
||||
|
||||
networks:
|
||||
linearvoid-net:
|
||||
@@ -115,3 +135,5 @@ networks:
|
||||
volumes:
|
||||
redis-data:
|
||||
postgres-data:
|
||||
prometheus-data:
|
||||
grafana-data:
|
||||
Reference in new issue
Block a user