feat: Initialize frontend and backend structure with essential configurations
- Added TypeScript build info for frontend. - Created Vite configuration for React application. - Implemented pre-commit hook to run checks before commits. - Set up PostgreSQL Dockerfile with PostGIS support and initialization scripts. - Added database creation script for PostgreSQL with necessary extensions. - Established Python project configuration with dependencies and development tools. - Developed pre-commit script to enforce code quality checks for backend and frontend. - Created PowerShell script to set up Git hooks path.
This commit is contained in:
15
infra/postgres/Dockerfile
Normal file
15
infra/postgres/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM postgis/postgis:16-3.4
|
||||
|
||||
ARG POSTGRES_USER=railgame
|
||||
ARG POSTGRES_PASSWORD=railgame
|
||||
ARG POSTGRES_DB=railgame_dev
|
||||
|
||||
ENV POSTGRES_USER=${POSTGRES_USER} \
|
||||
POSTGRES_PASSWORD=${POSTGRES_PASSWORD} \
|
||||
POSTGRES_DB=${POSTGRES_DB}
|
||||
|
||||
# Bootstrap extensions and companion databases on first run.
|
||||
COPY initdb/ /docker-entrypoint-initdb.d/
|
||||
|
||||
EXPOSE 5432
|
||||
Reference in New Issue
Block a user