mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
33 lines
764 B
YAML
33 lines
764 B
YAML
version: '3.8'
|
|
services:
|
|
app:
|
|
image: nginx
|
|
environment:
|
|
DB_URL: 'postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@db/postgres'
|
|
SERVICE_FQDN_APP: /app
|
|
APP_KEY: base64
|
|
APP_DEBUG: '${APP_DEBUG:-false}'
|
|
APP_URL: $SERVICE_FQDN_APP
|
|
volumes:
|
|
- './index.html:/var/www/html/index.html'
|
|
- 'test-html:/html'
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
db:
|
|
image: postgres
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
|
volumes:
|
|
- 'data:/var/lib/postgresql/data'
|
|
healthcheck:
|
|
test:
|
|
- CMD
|
|
- pg_isready
|
|
- '-U'
|
|
- postgres
|
|
interval: 2s
|
|
timeout: 10s
|
|
retries: 10
|