Commit All
This commit is contained in:
		
							
								
								
									
										24
									
								
								podman-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								podman-compose.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
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
 | 
			
		||||
		Reference in New Issue
	
	Block a user