[synapse] Add sliding sync v3 proxy
This commit is contained in:
		
							parent
							
								
									db5afa413d
								
							
						
					
					
						commit
						4fbb008dfb
					
				
					 1 changed files with 29 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -29,9 +29,36 @@ services:
 | 
			
		|||
    networks:
 | 
			
		||||
      - server
 | 
			
		||||
 | 
			
		||||
  sliding-sync-proxy:
 | 
			
		||||
    image: ghcr.io/matrix-org/sliding-sync:${sliding_sync_version:-latest}
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
    environment:
 | 
			
		||||
      - VIRTUAL_HOST=syncv3.matrix.jfreudenberger.de # the domain where the service should be reached
 | 
			
		||||
      - VIRTUAL_PORT=8008 # the port the service listens in the container
 | 
			
		||||
      - LETSENCRYPT_HOST=syncv3.matrix.jfreudenberger.de # the same domain as VIRTUAL_HOST; this enables ssl
 | 
			
		||||
      - SYNCV3_SERVER=https://matrix.jfreudenberger.de
 | 
			
		||||
      - SYNCV3_DB=postgresql://sliding:sliding@sliding-db:5432/sliding?sslmode=prefer
 | 
			
		||||
      - SYNCV3_SECRET=${sliding_sync_secret}
 | 
			
		||||
    networks:
 | 
			
		||||
      - slidingnet
 | 
			
		||||
      - webproxy
 | 
			
		||||
 | 
			
		||||
  sliding-db:
 | 
			
		||||
    image: postgres:${postgres_version:-13}
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
    environment:
 | 
			
		||||
      - POSTGRES_PASSWORD=sliding
 | 
			
		||||
      - POSTGRES_USER=sliding
 | 
			
		||||
      - POSTGRES_DB=sliding
 | 
			
		||||
    volumes:
 | 
			
		||||
      - sliding_postgres_data:/var/lib/postgresql/data
 | 
			
		||||
    networks:
 | 
			
		||||
      - slidingnet
 | 
			
		||||
 | 
			
		||||
volumes:
 | 
			
		||||
  custom_modules:
 | 
			
		||||
  postgres_data:
 | 
			
		||||
  sliding_postgres_data:
 | 
			
		||||
 | 
			
		||||
networks:
 | 
			
		||||
  server:
 | 
			
		||||
| 
						 | 
				
			
			@ -40,3 +67,5 @@ networks:
 | 
			
		|||
    external: true
 | 
			
		||||
  synapsenet:
 | 
			
		||||
    name: synapsenet
 | 
			
		||||
  slidingnet:
 | 
			
		||||
    name: slidingnet
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue