File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 11version : ' 2' 
22services :
3-     data :
4-         image : silintl/data-volume:latest 
5-         volumes :
6-           - ./application:/data 
7-           - ./mybackups:/backup 
8- 
93    #  See https://hub.docker.com/_/postgres/ for details of the postgres image.
104    #  POSTGRES_PASSWORD - superuser password for PostgreSQL
115    #  POSTGRES_USER - superuser (default is 'postgres')
126    #  POSTGRES_DB - name of default database (default is value of POSTGRES_USER)
137    db :
148        image : postgres:14.11-alpine3.19 
15-         volumes_from :
16-             - data 
9+         volumes :
10+           - ./application:/data 
11+           - ./mybackups:/backup 
1712        ports :
1813            - " 5432" 
1914        environment :
@@ -27,8 +22,9 @@ services:
2722    #  DB_NAME - name of database to back up/restore
2823    restore :
2924        build : ./ 
30-         volumes_from :
31-             - data 
25+         volumes :
26+           - ./application:/data 
27+           - ./mybackups:/backup 
3228        environment :
3329            DB_HOST : db 
3430            DB_ROOTUSER : postgres 
@@ -41,8 +37,9 @@ services:
4137
4238    backup :
4339        build : ./ 
44-         volumes_from :
45-             - data 
40+         volumes :
41+           - ./application:/data 
42+           - ./mybackups:/backup 
4643        environment :
4744            DB_HOST : db 
4845            DB_ROOTUSER : postgres 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments