Files
whats-the-point/docker-compose.yml
Mike Johnston 787c97a52f
Some checks failed
Build Images and Deploy / Update-PROD-Stack (push) Failing after 17s
initial commit
2026-01-28 23:52:15 -05:00

43 lines
822 B
YAML

version: '3.8'
services:
db:
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: whats_the_point
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
backend:
build: ./backend
restart: unless-stopped
environment:
PORT: 4000
JWT_SECRET: your_jwt_secret
DATABASE_URL: postgres://postgres:postgres@db:5432/whats_the_point
depends_on:
- db
ports:
- "4000:4000"
volumes:
- ./backend:/app
frontend:
build: ./frontend
restart: unless-stopped
environment:
VITE_API_URL: http://localhost:4000
depends_on:
- backend
ports:
- "5173:5173"
volumes:
- ./frontend:/app
volumes:
db_data: