From 444b8a698de45c54ce22078314c0bd44e82cfcea Mon Sep 17 00:00:00 2001 From: Murat Mirgun Ercan Date: Tue, 3 Oct 2023 17:37:55 +0300 Subject: [PATCH] add: dependabot and compose file creation for testing Signed-off-by: Murat Mirgun Ercan --- .github/dependabot.yml | 6 ++++++ docker-compose.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 docker-compose.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4ca67ad --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: gomod + directory: / + schedule: + interval: daily \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..69d27bf --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,25 @@ +version: "3" +services: + server: + image: postgrest/postgrest + ports: + - "3000:3000" + environment: + PGRST_DB_URI: postgres://app_user:password@db:5432/app_db + PGRST_DB_SCHEMA: public + PGRST_DB_ANON_ROLE: app_user # In production this role should not be the same as the one used for connection + PGRST_OPENAPI_SERVER_PROXY_URI: "http://127.0.0.1:3000" + depends_on: + - db + db: + image: postgres + ports: + - "5432:5432" + environment: + POSTGRES_DB: app_db + POSTGRES_USER: app_user + POSTGRES_PASSWORD: password +# Uncomment this if you want to persist the data. Create your boostrap SQL file in the project root +# volumes: +# - "./pgdata:/var/lib/postgresql/data" +# - "./init.sql:/docker-entrypoint-initdb.d/init.sql" \ No newline at end of file