26 lines
607 B
YAML
26 lines
607 B
YAML
version: "3.8"
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: production # Optional: use if your Dockerfile defines multiple stages
|
|
environment:
|
|
# Define your app-specific environment variables
|
|
DATABASE_URL: postgres://user:pass@db:5432/app
|
|
# Do not define "ports" here—Coolify will handle them for you
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: postgres:13
|
|
environment:
|
|
POSTGRES_USER: user
|
|
POSTGRES_PASSWORD: pass
|
|
POSTGRES_DB: app
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
postgres-data:
|