24 lines
		
	
	
		
			666 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			666 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
version: '3.8'
 | 
						|
 | 
						|
services:
 | 
						|
  calendar:
 | 
						|
    build: .
 | 
						|
    container_name: turmli-calendar
 | 
						|
    ports:
 | 
						|
      - "${PORT:-8000}:8000"
 | 
						|
    environment:
 | 
						|
      - TZ=${TZ:-Europe/Berlin}
 | 
						|
      - PYTHONUNBUFFERED=1
 | 
						|
    volumes:
 | 
						|
      # Persist calendar cache between restarts
 | 
						|
      - ./calendar_cache.json:/app/calendar_cache.json:Z
 | 
						|
    restart: unless-stopped
 | 
						|
    # Podman-specific: Run as current user instead of root
 | 
						|
    userns_mode: keep-id
 | 
						|
    security_opt:
 | 
						|
      - label=disable
 | 
						|
    healthcheck:
 | 
						|
      test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/events')"]
 | 
						|
      interval: 30s
 | 
						|
      timeout: 10s
 | 
						|
      retries: 3 |