- 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.
26 lines
No EOL
454 B
YAML
26 lines
No EOL
454 B
YAML
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" |