فهرست منبع

setup and run the db

Chris Mague 8 سال پیش
والد
کامیت
2755d3f792
3فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 1 1
      README.md
  2. 1 1
      main.tf
  3. 4 0
      variables.tf

+ 1 - 1
README.md

@@ -18,6 +18,6 @@ tfenv install `cat .terraform-version`
 
 ```
 terraform plan
-terraform apply
+terraform apply -var myip=<IP_ADDRESS_OF_YOUR_LAPTOP>
 ```
 

+ 1 - 1
main.tf

@@ -50,7 +50,7 @@ resource "docker_container" "keycloak" {
 }
 
 provider "postgresql" {
-  host            = "127.0.0.1"
+  host            = "172.18.5.3"
   port            = 5432
   database        = "postgres"
   username        = "${var.postgres_user}"

+ 4 - 0
variables.tf

@@ -7,3 +7,7 @@ variable "postgres_password" {
   description = "The Postgres password we want"
   default     = "psqltest"
 }
+
+variable "myip" {
+  description = "IP address of the local machine"
+}