feat: add first page with auth and containers list and agents

This commit is contained in:
2026-05-18 08:24:02 +02:00
parent 446087ae01
commit 3b4a841bf5
56 changed files with 16267 additions and 0 deletions

38
docker-compose.server.yml Normal file
View File

@ -0,0 +1,38 @@
services:
server:
build:
context: ./server
image: containarr-server:latest
restart: unless-stopped
ports:
- "8080:8080" # HTTP + WebSocket (PWA)
- "9090:9090" # gRPC (agents)
volumes:
- containarr-data:/data
environment:
DB_PATH: /data/containarr.db
HTTP_ADDR: ":8080"
GRPC_ADDR: ":9090"
JWT_SECRET: "${JWT_SECRET}"
ADMIN_USER: "${ADMIN_USER}"
ADMIN_PASSWORD: "${ADMIN_PASSWORD}"
BOOTSTRAP_TOKENS: "local:${LOCAL_AGENT_TOKEN}"
# Agent for the local VM (same host as the server).
agent:
build:
context: .
dockerfile: agent/Dockerfile
image: containarr-agent:latest
restart: unless-stopped
depends_on:
- server
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
CONTAINARR_SERVER_URL: "http://server:9090"
CONTAINARR_AGENT_TOKEN: "${LOCAL_AGENT_TOKEN}"
RUST_LOG: "info"
volumes:
containarr-data: