From 683005f49b10230eeaae42bed9064bbaaf60aa31 Mon Sep 17 00:00:00 2001 From: Theurkar Prathamesh Ravindra <109230625+PrathameshTheurkar@users.noreply.github.com> Date: Sun, 27 Aug 2023 21:13:40 +0530 Subject: [PATCH 1/3] Create .env.sample Created a '.env.sample' file and moved the POSTGRES_USER and POSTGRES_PASSWORD environment variables from the 'docker-compose.yml' file to the '.env.sample' file. --- .env.sample | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .env.sample diff --git a/.env.sample b/.env.sample new file mode 100644 index 00000000..196d9082 --- /dev/null +++ b/.env.sample @@ -0,0 +1,2 @@ +POSTGRES_USER=timescaledb +POSTGRES_PASSWORD=postgrespassword From fc29f1f50c9eceb82f50ea8470fbaf8c2b9de9b1 Mon Sep 17 00:00:00 2001 From: Theurkar Prathamesh Ravindra <109230625+PrathameshTheurkar@users.noreply.github.com> Date: Sun, 27 Aug 2023 21:16:48 +0530 Subject: [PATCH 2/3] Update docker-compose.yml Updated the 'docker-compose.yml' file to reference these variables from the '.env.sample' file. --- docker-compose.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f11ce7cd..17d8d24f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,9 +8,8 @@ services: - "5432:5432" volumes: - ./pgdata:/var/lib/postgresql/data - environment: - POSTGRES_USER: timescaledb - POSTGRES_PASSWORD: postgrespassword + env_file: + - .env.sample graphql-engine: image: hasura/graphql-engine:latest From 172199d5d329e9020bdd25901b72ff9d74c31692 Mon Sep 17 00:00:00 2001 From: Theurkar Prathamesh Ravindra <109230625+PrathameshTheurkar@users.noreply.github.com> Date: Sun, 27 Aug 2023 21:27:12 +0530 Subject: [PATCH 3/3] Update README.md Changed the Usage with Compose section and under that section instructed users to create their own .env.sample file with their specific details. --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e033408a..c213d834 100644 --- a/README.md +++ b/README.md @@ -21,18 +21,19 @@ Bootstrapped from [TimescaleDB](https://github.com/timescale/timescaledb-docker) ```yaml version: '3.6' services: - warpsql: - container_name: warpsql + timescaledb: + container_name: timescaledb image: samagragovernance/postgres:latest-pg15 restart: always ports: - "5432:5432" volumes: - ./pgdata:/var/lib/postgresql/data - environment: - POSTGRES_USER: warpSQLUser - POSTGRES_PASSWORD: warpSQLPass + env_file: + - .env.sample ``` +Users need to create their own .env.sample file with their specific POSTGRES_USER and POSTGRES_PASSWORD. + WarpSQL is a powerful solution that provides opinionated extensions to Postgres, conveniently packaged as a single Docker deployment. It eliminates the need to install multiple separate databases by offering a comprehensive set of features in one place (although not everything, as some features might not be included).