changing ufmonitor to not use public ip for db connection
This commit is contained in:
parent
e7e9c317ac
commit
d1a86269b9
3 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
apiserver_container_image: "docker.io/fedoraqa/ufmonitor-apiserver:latest"
|
||||
updater_container_image: "docker.io/fedoraqa/ufmonitor-updater:latest"
|
||||
ufmonitor_db_host: "172.17.0.1"
|
||||
ufmonitor_db_name: "ufmonitor"
|
||||
ufmonitor_db_user: "ufmonitor"
|
||||
ufmonitor_db_password: "terribleinsecurepassword"
|
||||
|
|
|
@ -8,7 +8,7 @@ TimeoutStartSec=0
|
|||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
EnvironmentFile=-{{ ufmonitor_config_path }}
|
||||
ExecStart=/usr/bin/docker run --detach --log-driver none --name %n -p 8000:8000 -e POSTGRES_DB_PASSWORD={{ ufmonitor_db_password }} --add-host=postgres:{{ public_ip }} {{ apiserver_container_image }}
|
||||
ExecStart=/usr/bin/docker run --detach --log-driver none --name %n -p 8000:8000 -e POSTGRES_DB_PASSWORD={{ ufmonitor_db_password }} --add-host=postgres:{{ ufmonitor_db_host }} {{ apiserver_container_image }}
|
||||
ExecStop=/usr/bin/docker rm --force %n
|
||||
TimeoutStopSec=180
|
||||
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
#
|
||||
|
||||
source {{ ufmonitor_config_path }}
|
||||
docker run --add-host=postgres:{{ public_ip }} {{ updater_container_image }} -l /var/log/ufmonitor/updater.log
|
||||
docker run --add-host=postgres:{{ ufmonitor_db_host}} {{ updater_container_image }} -l /var/log/ufmonitor/updater.log
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue