Commit All
This commit is contained in:
		
							
								
								
									
										20
									
								
								docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
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
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
    healthcheck:
 | 
			
		||||
      test: ["CMD", "curl", "-f", "http://localhost:8000/api/events"]
 | 
			
		||||
      interval: 30s
 | 
			
		||||
      timeout: 10s
 | 
			
		||||
      retries: 3
 | 
			
		||||
		Reference in New Issue
	
	Block a user