Files
SpaceCom/docker-compose.yml

44 lines
897 B
YAML
Raw Normal View History

2025-06-30 05:17:50 +00:00
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: