update
This commit is contained in:
		
							
								
								
									
										18
									
								
								mongodb/Demo/SingleNode/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								mongodb/Demo/SingleNode/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
version: "3.7"
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  mongodb:
 | 
			
		||||
    image: harbor.colben.cn/general/mongodb
 | 
			
		||||
    container_name: mongodb
 | 
			
		||||
    restart: "on-failure"
 | 
			
		||||
    stop_grace_period: 5m
 | 
			
		||||
    ports:
 | 
			
		||||
    - 27017:27017
 | 
			
		||||
    volumes:
 | 
			
		||||
    - type: bind
 | 
			
		||||
      source: ./mongodb/db
 | 
			
		||||
      target: /var/lib/mongo
 | 
			
		||||
    - type: bind
 | 
			
		||||
      source: ./mongodb/log
 | 
			
		||||
      target: /var/log/mongo
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user