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 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). 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