graphile / starter

Opinionated SaaS quick-start with pre-built user account and organization system for full-stack application development in React, Node.js, GraphQL and PostgreSQL. Powered by PostGraphile, TypeScript, Apollo Client, Graphile Worker, Graphile Migrate, GraphQL Code Generator, Ant Design and Next.js
https://graphile-starter.herokuapp.com
Other
1.74k stars 219 forks source link

can't launch database with docker-compose v2 #278

Closed DanielFGray closed 2 years ago

DanielFGray commented 2 years ago

Summary

docker-compose 2 seems to behave slightly differently with regards to quotes in environment files

Steps to reproduce

Expected results

 ⠿ Container graphile-starter-db-1           Started

Actual results

unexpected character "-" in variable name near "exec -T db pg_dump\n\n# Drops tables without asking in `yarn setup`. Reasoning: 1) docker-compose is\n# not tty, 2) it's a dev env anyway.\nCONFIRM_DROP=y\n\n# POSTGRES_PASSWORD is the superuser password for PostgreSQL, it's required to\n# initialize the Postgres docker volume.\nPOSTGRES_PASSWORD=password\n\n# We're accessing Postgres via Docker, so we must use the db host and the\n# relevant password.\nDATABASE_HOST=db\nROOT_DATABASE_URL=postgres://postgres:password@db/postgres\n"

DanielFGray commented 2 years ago

fixed with #279