mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-03 19:58:14 +00:00 
			
		
		
		
	Solved Database bugs
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
version:  "latest"
 | 
					version:  "latest"
 | 
				
			||||||
hostname: "svc-db-mariadb"
 | 
					hostname: "svc-db-mariadb"
 | 
				
			||||||
network:  "<< defaults_applications[svc-db-mariadb].hostname >>"
 | 
					network:  "<< defaults_applications[svc-db-mariadb].hostname >>"
 | 
				
			||||||
port:     5432
 | 
					port:     3306
 | 
				
			||||||
volume:   "<< defaults_applications[svc-db-mariadb].hostname >>_data"
 | 
					volume:   "<< defaults_applications[svc-db-mariadb].hostname >>_data"
 | 
				
			||||||
@@ -3,10 +3,10 @@ network:  "<< defaults_applications[svc-db-postgres].hostname >>"
 | 
				
			|||||||
port:     5432
 | 
					port:     5432
 | 
				
			||||||
volume:   "<< defaults_applications[svc-db-postgres].hostname >>"
 | 
					volume:   "<< defaults_applications[svc-db-postgres].hostname >>"
 | 
				
			||||||
docker:
 | 
					docker:
 | 
				
			||||||
  images:
 | 
					  services:
 | 
				
			||||||
    # Postgis is necessary for mobilizon
 | 
					    postgres:
 | 
				
			||||||
    postgres: postgis/postgis
 | 
					      # Postgis is necessary for mobilizon
 | 
				
			||||||
  versions:  
 | 
					      image: postgis/postgis
 | 
				
			||||||
    # Please set an version in your inventory file! 
 | 
					      # Please set an version in your inventory file! 
 | 
				
			||||||
    # Rolling release isn't recommended
 | 
					      # Rolling release isn't recommended
 | 
				
			||||||
    postgres: "latest"
 | 
					      version: "latest"
 | 
				
			||||||
@@ -9,7 +9,7 @@
 | 
				
			|||||||
- name: Install PostgreSQL
 | 
					- name: Install PostgreSQL
 | 
				
			||||||
  docker_container:
 | 
					  docker_container:
 | 
				
			||||||
    name: "{{ applications | get_app_conf(application_id, 'hostname', True) }}"
 | 
					    name: "{{ applications | get_app_conf(application_id, 'hostname', True) }}"
 | 
				
			||||||
    image: "{{ applications | get_docker_image(application_id) }}"
 | 
					    image: "{{ applications | get_app_conf(application_id, 'docker.services.postgres.image', True) }}:{{ applications | get_app_conf(application_id, 'docker.services.postgres.version', True) }}"
 | 
				
			||||||
    detach: yes
 | 
					    detach: yes
 | 
				
			||||||
    env:
 | 
					    env:
 | 
				
			||||||
      POSTGRES_PASSWORD: "{{ applications | get_app_conf(application_id, 'credentials.postgres_password', True) }}"
 | 
					      POSTGRES_PASSWORD: "{{ applications | get_app_conf(application_id, 'credentials.postgres_password', True) }}"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user