Bootstrap Codex project scaffold with Dev Container and Dockerized PostgreSQL#1
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add project structure and Dev Container configuration for Codex
Bootstrap Codex project scaffold with Dev Container and Dockerized PostgreSQL
Jul 2, 2026
There was a problem hiding this comment.
Pull request overview
This PR repurposes the repository into a “Codex” project scaffold and adds a consistent local development environment based on Dev Containers and Docker Compose, including a Dockerized PostgreSQL service and example environment variables.
Changes:
- Replaced the README with Codex onboarding instructions (Dev Container + Compose DB + env usage).
- Added Dev Container configuration and a minimal dev image with
postgresql-client. - Added
docker-compose.yml,.env.example, and a baseline.gitignore, plus directory placeholders.
Reviewed changes
Copilot reviewed 5 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
README.md |
New onboarding docs for Dev Container + Compose DB + env variables. |
docker-compose.yml |
Adds app (Dev Container) and db (Postgres 16) services with volume persistence. |
.devcontainer/devcontainer.json |
Dev Container config targeting the Compose app service. |
.devcontainer/Dockerfile |
Dev image installs postgresql-client for DB tooling. |
.env.example |
Example env vars for OpenAI key and Postgres configuration. |
.gitignore |
Ignores env files, editor state, caches, logs, and build artifacts. |
src/.gitkeep |
Placeholder to keep src/ in git. |
docs/.gitkeep |
Placeholder to keep docs/ in git. |
data/.gitkeep |
Placeholder to keep data/ in git. |
scripts/.gitkeep |
Placeholder to keep scripts/ in git. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1
to
+5
| OPENAI_API_KEY=your_openai_api_key_here | ||
| POSTGRES_USER=codex | ||
| POSTGRES_PASSWORD=__SET_SECURE_PASSWORD__ | ||
| POSTGRES_DB=codex | ||
| POSTGRES_PORT=5432 |
Comment on lines
+41
to
+43
| Domyślne ustawienia PostgreSQL: | ||
| - host: `localhost` | ||
| - port: `5432` |
Comment on lines
+3
to
+5
| build: | ||
| context: . | ||
| dockerfile: .devcontainer/Dockerfile |
Copilot AI
added a commit
that referenced
this pull request
Jul 2, 2026
Adds .dockerignore to prevent .env, .git, node_modules, __pycache__, and other unnecessary files from being included in the Docker build context. This addresses the review comment (discussion_r3509898653) and improves security and build performance. Also includes the project scaffold files (docker-compose.yml, .devcontainer, .gitignore, .env.example, etc.) that were introduced in PR #1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR reshapes the repository into a Codex-ready project skeleton and adds a consistent local development runtime. It introduces Dev Container support, Docker Compose database provisioning, and startup docs/env conventions for secure, repeatable onboarding.
Project scaffold
.devcontainer/,src/,docs/,data/,scripts/.gitkeepplaceholders in new directories to preserve structure in git.Containerized development environment
.devcontainer/devcontainer.jsonconfigured to run against Compose serviceapp..devcontainer/Dockerfile(base dev image +postgresql-client) for local DB tooling in-container.codexfor consistency.Database runtime via Docker Compose
docker-compose.ymlwith:appservice for Dev Container workflowdbservice (postgres:16-alpine) with persistent volumePOSTGRES_PORTPOSTGRES_PASSWORD(no weak default fallback)Environment and secret hygiene
.env.examplewith:OPENAI_API_KEY=your_openai_api_key_herePOSTGRES_USER,POSTGRES_PASSWORD,POSTGRES_DB,POSTGRES_PORT).gitignorecovering local env files, editor state, caches, logs, and build artifacts.README replacement for Codex onboarding