chore: implement semantic versioning with docker image tagging
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
# Development Docker Compose Configuration
|
||||
# Usage: docker-compose -f docker-compose.dev.yml up -d
|
||||
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
target: builder
|
||||
args:
|
||||
GIT_COMMIT: ${GIT_COMMIT:-dev}
|
||||
container_name: euchre-camp-dev
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
# Database Configuration
|
||||
- DATABASE_PROVIDER=postgresql
|
||||
- DATABASE_URL=postgresql://euchre_camp:password@db:5432/euchre_camp
|
||||
- DATABASE_SHADOW_URL=postgresql://euchre_camp:password@db:5432/euchre_camp_shadow
|
||||
|
||||
# Better Auth Configuration
|
||||
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET:-dev-secret-change-in-production}
|
||||
- BETTER_AUTH_URL=${BETTER_AUTH_URL:-http://localhost:3000}
|
||||
|
||||
# Application Configuration
|
||||
- NODE_ENV=development
|
||||
|
||||
# Trusted Origins for Better Auth
|
||||
- TRUSTED_ORIGINS=${TRUSTED_ORIGINS:-http://localhost:3000,http://127.0.0.1:3000}
|
||||
|
||||
# Version tracking
|
||||
- IMAGE_VERSION=0.1.0.dev-dev
|
||||
|
||||
volumes:
|
||||
# Mount source code for hot reload
|
||||
- .:/app
|
||||
- /app/node_modules
|
||||
- /app/.next
|
||||
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
- euchre-network
|
||||
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
container_name: euchre-camp-db-dev
|
||||
ports:
|
||||
- "5433:5432" # Different port to avoid conflicts
|
||||
environment:
|
||||
- POSTGRES_DB=euchre_camp
|
||||
- POSTGRES_USER=euchre_camp
|
||||
- POSTGRES_PASSWORD=password
|
||||
volumes:
|
||||
- euchre_camp_db_data_dev:/var/lib/postgresql/data
|
||||
- ./scripts/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- euchre-network
|
||||
|
||||
volumes:
|
||||
euchre_camp_db_data_dev:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
euchre-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user