mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
38 lines
917 B
YAML
38 lines
917 B
YAML
services:
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3000"
|
|
environment:
|
|
- PORT=3000
|
|
- DB_CONNECTION=postgres
|
|
- TEST=${TEST}
|
|
database:
|
|
image: postgres:14-alpine
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
- ./asd/asd:/asd:ro
|
|
- type: bind
|
|
source: ./app
|
|
target: /app/pg.sql
|
|
content: |
|
|
-- NOTE: change to your own passwords for production environments
|
|
\set pgpass `echo "$POSTGRES_PASSWORD"`
|
|
|
|
ALTER USER authenticator WITH PASSWORD :'pgpass';
|
|
ALTER USER pgbouncer WITH PASSWORD :'pgpass';
|
|
- /asdf:/asdf
|
|
- type: bind
|
|
source: ./app
|
|
target: /app
|
|
read_only: true
|
|
- type: bind
|
|
source: /1234
|
|
target: /123
|
|
read_only: false
|
|
environment:
|
|
- POSTGRES_DB=database
|
|
- POSTGRES_PASSWORD=password
|