14 lines
		
	
	
	
		
			370 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
	
		
			370 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| 
								 | 
							
								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
							 |