From a2e1d4566168bb16b8556261503b62ba03d65088 Mon Sep 17 00:00:00 2001 From: Felipe Cotti Date: Thu, 5 Dec 2024 15:14:17 -0300 Subject: [PATCH] fix: We still had places to improve. Turns out this is pretty important. --- build/.env.template | 12 ++++++++++++ build/docker-compose.local.yml | 4 ++-- build/docker-compose.public.yml | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 build/.env.template diff --git a/build/.env.template b/build/.env.template new file mode 100644 index 0000000..555e1ea --- /dev/null +++ b/build/.env.template @@ -0,0 +1,12 @@ +ACCESS_USERNAME=user +ACCESS_PASSWORD=pass +ACCESS_TOKENKEY=youbetterbesureyouareusingatokenkey +ACCESS_ISSUER=https://guestbooky.example.com/api +ACCESS_AUDIENCE=https://guestbooky.example.com +CLOUDFLARE_SECRET=0x000000000000000000000000000000000 +CORS_ORIGINS=https://guestbooky.example.com +MONGO_INITDB_ROOT_USERNAME=root +MONGO_INITDB_ROOT_PASSWORD=mongo +GUESTBOOKY_DB_NAME=Guestbooky +GUESTBOOKY_USER=guestbookyuser +GUESTBOOKY_PASSWORD=guestbookypassword \ No newline at end of file diff --git a/build/docker-compose.local.yml b/build/docker-compose.local.yml index c5545d6..eb8b960 100644 --- a/build/docker-compose.local.yml +++ b/build/docker-compose.local.yml @@ -13,7 +13,7 @@ services: - mongodata:/data/db command: ["mongod", "--config", "/etc/mongod.conf"] ports: - - "27017:27017" + - "127.0.0.1:27017:27017" mongo-express: image: mongo-express @@ -27,7 +27,7 @@ services: depends_on: - mongo ports: - - "8082:8081" + - "127.0.0.1:8082:8081" volumes: mongodata: \ No newline at end of file diff --git a/build/docker-compose.public.yml b/build/docker-compose.public.yml index e189d3b..dad7463 100644 --- a/build/docker-compose.public.yml +++ b/build/docker-compose.public.yml @@ -4,7 +4,7 @@ services: image: cotti/guestbooky-be container_name: guestbooky-be ports: - - "8080:8080" + - "127:0.0.1:8080:8080" environment: ASPNETCORE_ENVIRONMENT: Production CORS_ORIGINS: ${CORS_ORIGINS}