How yukionishi1129/nestjs-graphql-docker-sample works
Project type and purpose
• This is a backend-only service sample: a NestJS GraphQL API using TypeORM and MySQL, packaged and orchestrated via Docker Compose. There is no separate frontend; the “client” is any GraphQL client or playground.
File structure
• Top-level:
• docker-compose.yml (defines two services: app & db)
• mysql/ (custom MySQL config)
• .env.sample, .dockerignore, .gitignore
• app/ (NestJS application)
• Dockerfile, .env.sample, ESLint/Prettier configs
• nest-cli.json, ormconfig.js(.local)
• src/
– app.controller.ts, app.service.ts, app.module.ts, main.ts
– books/ (GraphQL module: resolver, service, DTOs, entities)
– migrations/ (TypeORM migrations + factories + seeds)
– schema.gql
• test/ (e2e tests)
• tsconfig*.json, package.json
• docker-compose.yml spins up:
• app service (builds app/Dockerfile)
• db service (MySQL with custom config in mysql/mysql.cnf)
README insights
• Provides Docker Compose commands for build, up/down, entering containers.