base sys done. shift to vs code

This commit is contained in:
Duncan Auld
2025-06-30 05:17:50 +00:00
parent 05f87e04f9
commit 2c49d7cd5c
10 changed files with 292 additions and 0 deletions

43
docker-compose.yml Normal file
View File

@@ -0,0 +1,43 @@
version: '3.8'
services:
frontend:
image: nginx:alpine
container_name: spacecom-frontend
volumes:
- ./frontend/public:/usr/share/nginx/html:ro
ports:
- "8080:80"
restart: unless-stopped
backend:
build: ./backend
container_name: spacecom-backend
ports:
- "8000:8000"
depends_on:
- db
environment:
- DB_URL=postgresql://spacecom:spacecom@db:5432/spacecom
volumes:
- ./backend:/app
restart: unless-stopped
db:
image: timescaledev/timescaledb-ha:pg17
container_name: spacecom-db
ports:
- "5432:5432"
environment:
POSTGRES_DB: spacecom
POSTGRES_USER: spacecom
POSTGRES_PASSWORD: uCV4@YUCuR9kX.MQaxp2
volumes:
- pgdata:/var/lib/postgresql/data
- ./db/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
restart: unless-stopped
volumes:
pgdata: