Files
CitrusMusic/docker-compose.yml

36 lines
653 B
YAML

version: '3.8'
services:
db:
image: postgres:15
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: citrusmusic
volumes:
- postgres_data:/var/lib/postgresql/data
backend:
build: ./backend
ports:
- "8000:8000"
environment:
DATABASE_URL: postgresql://user:password@db:5432/citrusmusic
depends_on:
- db
frontend:
build: ./frontend
ports:
- "8081:8081"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- EXPO_PUBLIC_API_URL=http://localhost:8000
depends_on:
- backend
volumes:
postgres_data: