Files
canopy-workloads/learning/docker-compose.yml
T
kiskaadee 19a63811e2 refactor(learning): purge unnecessary system stats and docker integration
This commit removes the system monitoring, docker status, and bookmark
features from the learning board to reduce complexity and improve
security

- Remove `/system-stats`, and `/bookmarks` API endpoints and their
  controller logic
- Drop Python dependencies `psutils` and `docker` (and associated
  lockfile entries)
- Remove Docker socket proxy configuration, network bindings, and
  environment variables from `docker-compose.yml` and `config.py`
- Remove the read-only `/home` volume mount from the Docker compose file
2026-07-09 15:20:06 -05:00

34 lines
1.0 KiB
YAML

services:
app:
build: .
container_name: ${SERVICE_NAME}
restart: unless-stopped
volumes:
- ./data:/app/data
environment:
- TURSO_DATABASE_URL=${TURSO_DATABASE_URL}
- TURSO_AUTH_TOKEN=${TURSO_AUTH_TOKEN}
networks:
- proxy
labels:
- "traefik.enable=true"
# HTTPS Router
- "traefik.http.routers.${SERVICE_NAME}.rule=Host(`${SERVICE_DOMAIN}`)"
- "traefik.http.routers.${SERVICE_NAME}.entrypoints=websecure"
- "traefik.http.routers.${SERVICE_NAME}.tls=true"
- "traefik.http.routers.${SERVICE_NAME}.service=${SERVICE_NAME}-svc"
# HTTP to HTTPS Redirect
- "traefik.http.routers.${SERVICE_NAME}-red.rule=Host(`${SERVICE_DOMAIN}`)"
- "traefik.http.routers.${SERVICE_NAME}-red.entrypoints=web"
- "traefik.http.routers.${SERVICE_NAME}-red.middlewares=https-redirect@docker"
# Service Definition
- "traefik.http.services.${SERVICE_NAME}-svc.loadbalancer.server.port=${APP_PORT:-8000}"
networks:
proxy:
name: ${PROXY_NETWORK}
external: true