Solved Database bugs

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-13 22:30:41 +02:00
parent 294d402990
commit 6fbe550afe
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
3 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
version: "latest"
hostname: "svc-db-mariadb"
network: "<< defaults_applications[svc-db-mariadb].hostname >>"
port: 5432
port: 3306
volume: "<< defaults_applications[svc-db-mariadb].hostname >>_data"

View File

@ -3,10 +3,10 @@ network: "<< defaults_applications[svc-db-postgres].hostname >>"
port: 5432
volume: "<< defaults_applications[svc-db-postgres].hostname >>"
docker:
images:
# Postgis is necessary for mobilizon
postgres: postgis/postgis
versions:
# Please set an version in your inventory file!
# Rolling release isn't recommended
postgres: "latest"
services:
postgres:
# Postgis is necessary for mobilizon
image: postgis/postgis
# Please set an version in your inventory file!
# Rolling release isn't recommended
version: "latest"

View File

@ -9,7 +9,7 @@
- name: Install PostgreSQL
docker_container:
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
env:
POSTGRES_PASSWORD: "{{ applications | get_app_conf(application_id, 'credentials.postgres_password', True) }}"