update
This commit is contained in:
		
							
								
								
									
										25
									
								
								mariadb/Demo/SingleNode/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								mariadb/Demo/SingleNode/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
version: "3.7"
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  mariadb:
 | 
			
		||||
    image: harbor.colben.cn/general/mariadb
 | 
			
		||||
    container_name: mariadb
 | 
			
		||||
    restart: "on-failure"
 | 
			
		||||
    stop_grace_period: 5m
 | 
			
		||||
    privileged: true
 | 
			
		||||
    ports:
 | 
			
		||||
    - 3306:3306
 | 
			
		||||
    volumes:
 | 
			
		||||
    - type: bind
 | 
			
		||||
      source: ./mariadb/my.cnf
 | 
			
		||||
      target: /etc/my.cnf
 | 
			
		||||
    - type: bind
 | 
			
		||||
      source: ./mariadb/binlog
 | 
			
		||||
      target: /var/lib/mysql-bin
 | 
			
		||||
    - type: bind
 | 
			
		||||
      source: ./mariadb/db
 | 
			
		||||
      target: /var/lib/mysql
 | 
			
		||||
    - type: bind
 | 
			
		||||
      source: ./mariadb/log
 | 
			
		||||
      target: /var/log/mysql
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user