mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
22 lines
429 B
YAML
22 lines
429 B
YAML
services:
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3000"
|
|
environment:
|
|
- PORT=3000
|
|
- DB_CONNECTION=postgres
|
|
database:
|
|
image: postgres:14-alpine
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
- type: bind
|
|
source: ./app
|
|
target: /app
|
|
read_only: true
|
|
environment:
|
|
- POSTGRES_DB=database
|
|
- POSTGRES_PASSWORD=password
|