mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	add 增加 postgresql docker 镜像
This commit is contained in:
		@@ -33,3 +33,29 @@ services:
 | 
			
		||||
      # 数据挂载
 | 
			
		||||
      - "/docker/sqlserver/data:/var/opt/mssql"
 | 
			
		||||
    restart: always
 | 
			
		||||
 | 
			
		||||
  postgres:
 | 
			
		||||
    image: postgres:14.2
 | 
			
		||||
    container_name: postgres
 | 
			
		||||
    environment:
 | 
			
		||||
      POSTGRES_USER: root
 | 
			
		||||
      POSTGRES_PASSWORD: root
 | 
			
		||||
      POSTGRES_DB: postgres
 | 
			
		||||
    ports:
 | 
			
		||||
      - "5432:5432"
 | 
			
		||||
    volumes:
 | 
			
		||||
      - /docker/postgres/data:/var/lib/postgresql/data
 | 
			
		||||
    restart: always
 | 
			
		||||
 | 
			
		||||
  postgres13:
 | 
			
		||||
    image: postgres:13.6
 | 
			
		||||
    container_name: postgres13
 | 
			
		||||
    environment:
 | 
			
		||||
      POSTGRES_USER: root
 | 
			
		||||
      POSTGRES_PASSWORD: root
 | 
			
		||||
      POSTGRES_DB: postgres
 | 
			
		||||
    ports:
 | 
			
		||||
      - "5433:5432"
 | 
			
		||||
    volumes:
 | 
			
		||||
      - /docker/postgres13/data:/var/lib/postgresql/data
 | 
			
		||||
    restart: always
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user