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 volumes: postgres_data: