Complete refactor of environment configuration and Docker setup for development and production.

- Dev and prod both now run with the same exact docker configuration, except the .env file copied in.
- Removed the `.env` file and added a new `.env.dev` file for development settings, including database configuration and API keys.
- Introduced a `.envrc` file for automatic venv activation.
- Updated `deploy.sh` to utilize `uv` for running management commands and added a command for building Tailwind CSS.
- Created `docker-compose.yml` for local development with PostgreSQL, ensuring proper service dependencies.
- Deleted unnecessary files such as `docker-compose_db_only.yml` and `requirements.txt` to streamline the project structure.
This commit is contained in:
badblocks 2025-05-05 21:48:59 -07:00
parent 0d19f0f060
commit 9c41f63247
14 changed files with 347 additions and 357 deletions

26
docker-compose.yml Normal file
View file

@ -0,0 +1,26 @@
services:
web:
build:
context: .
dockerfile: Dockerfile
args:
ENV_FILE: .env.dev
volumes:
- .:/code:z
ports:
- 8000:8000
depends_on:
- db
db:
image: postgres:16
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
volumes:
postgres_data:
labels:
- "db_is_resettable_via_script"