43 lines
		
	
	
		
			926 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			926 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
apiVersion: apps/v1
 | 
						|
kind: Deployment
 | 
						|
metadata:
 | 
						|
  name: audiobookshelf
 | 
						|
spec:
 | 
						|
  replicas: 1
 | 
						|
  selector:
 | 
						|
    matchLabels:
 | 
						|
      app: audiobookshelf
 | 
						|
  template:
 | 
						|
    metadata:
 | 
						|
      labels:
 | 
						|
        app: audiobookshelf
 | 
						|
    spec:
 | 
						|
      containers:
 | 
						|
        - name: audiobookshelf
 | 
						|
          image: audiobookshelf
 | 
						|
          ports:
 | 
						|
            - containerPort: 80
 | 
						|
            
 | 
						|
          env:
 | 
						|
          - name: TZ
 | 
						|
            value: Europe/Berlin
 | 
						|
          - name: CONFIG_PATH
 | 
						|
            value: /data/config
 | 
						|
          - name: METADATA_PATH
 | 
						|
            value: /data/metadata
 | 
						|
          volumeMounts:
 | 
						|
            - name: data
 | 
						|
              mountPath: /data
 | 
						|
          resources:
 | 
						|
            requests:
 | 
						|
              cpu: "100m"
 | 
						|
              memory: "200Mi"
 | 
						|
            limits:
 | 
						|
              cpu: "2"
 | 
						|
              memory: "1Gi"
 | 
						|
      volumes:
 | 
						|
        - name: data
 | 
						|
          persistentVolumeClaim:
 | 
						|
            claimName: audiobookshelf-data
 | 
						|
 |