update volumes and backupbot labels
This commit is contained in:
		
							
								
								
									
										11
									
								
								compose.yml
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								compose.yml
									
									
									
									
									
								
							@ -90,10 +90,10 @@ services:
 | 
			
		||||
      - internal
 | 
			
		||||
      - proxy
 | 
			
		||||
    volumes:
 | 
			
		||||
      - backups:/backups
 | 
			
		||||
      - media:/media
 | 
			
		||||
      - /dev/null:/blueprints/default/flow-oobe.yaml
 | 
			
		||||
      - templates:/templates
 | 
			
		||||
      - certs:/certs
 | 
			
		||||
    configs:
 | 
			
		||||
      - source: flow_recovery
 | 
			
		||||
        target: /blueprints/1_flow_recovery.yaml
 | 
			
		||||
@ -144,10 +144,12 @@ services:
 | 
			
		||||
          backupbot.backup: "true"
 | 
			
		||||
          backupbot.backup.pre-hook: "PGPASSWORD=$$(cat /run/secrets/db_password) pg_dump -U $${POSTGRES_USER} $${POSTGRES_DB} > /var/lib/postgresql/data/backup.sql"
 | 
			
		||||
          backupbot.backup.post-hook: "rm -rf /var/lib/postgresql/data/backup.sql"
 | 
			
		||||
          backupbot.backup.path: "/var/lib/postgresql/data"
 | 
			
		||||
          backupbot.backup.volumes.database.path: "backup.sql"
 | 
			
		||||
          backupbot.backup.volumes.redis: "false"
 | 
			
		||||
 | 
			
		||||
  redis:
 | 
			
		||||
    image:  redis:7.4.0-alpine
 | 
			
		||||
    command: --save 60 1 --loglevel warning
 | 
			
		||||
    networks:
 | 
			
		||||
      - internal
 | 
			
		||||
    healthcheck:
 | 
			
		||||
@ -156,6 +158,8 @@ services:
 | 
			
		||||
      timeout: 10s
 | 
			
		||||
      retries: 10
 | 
			
		||||
      start_period: 1m
 | 
			
		||||
    volumes:
 | 
			
		||||
        - redis:/data
 | 
			
		||||
 | 
			
		||||
secrets:
 | 
			
		||||
  db_password:
 | 
			
		||||
@ -180,8 +184,9 @@ networks:
 | 
			
		||||
  internal:
 | 
			
		||||
 | 
			
		||||
volumes:
 | 
			
		||||
  backups:
 | 
			
		||||
  media:
 | 
			
		||||
  certs:
 | 
			
		||||
  redis:
 | 
			
		||||
  templates:
 | 
			
		||||
  assets:
 | 
			
		||||
  database:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user