[matrix] create a external DB matrix docker-compose for Task#11990
This commit is contained in:
		
					parent
					
						
							
								15b5ee2956
							
						
					
				
			
			
				commit
				
					
						915b48691b
					
				
			
		
					 9 changed files with 3122 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								matrix_extDB/postgresql/.env
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								matrix_extDB/postgresql/.env
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
dbuser=synapse
 | 
			
		||||
dbpassword=NEEDTOSETPASSWORD
 | 
			
		||||
dbname=synapse
 | 
			
		||||
							
								
								
									
										15
									
								
								matrix_extDB/postgresql/README.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								matrix_extDB/postgresql/README.md
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,15 @@
 | 
			
		|||
## Usage and Components
 | 
			
		||||
 | 
			
		||||
Note: as of 2023-09-12 this docker-compose is available internally.
 | 
			
		||||
 | 
			
		||||
### Versions
 | 
			
		||||
 | 
			
		||||
* Postresql: registry.ipv6.docker.com/library/postgres
 | 
			
		||||
 | 
			
		||||
### Sample usage
 | 
			
		||||
 | 
			
		||||
Setting up matrix for  ...
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
docker-compose up -d
 | 
			
		||||
```
 | 
			
		||||
							
								
								
									
										14
									
								
								matrix_extDB/postgresql/docker-compose.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								matrix_extDB/postgresql/docker-compose.yaml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,14 @@
 | 
			
		|||
version: '3'
 | 
			
		||||
services:
 | 
			
		||||
  postgres:
 | 
			
		||||
    image: postgres:14
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
    ports:
 | 
			
		||||
      - "5432:5432/tcp"
 | 
			
		||||
    volumes:
 | 
			
		||||
     - ./postgresdata:/var/lib/postgresql/data
 | 
			
		||||
    environment:
 | 
			
		||||
     - POSTGRES_DB=${dbname}
 | 
			
		||||
     - POSTGRES_USER=${dbuser}
 | 
			
		||||
     - POSTGRES_PASSWORD=${dbpassword}
 | 
			
		||||
     - POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue