Files
coolify-examples/docker-compose-test/docker-compose-parser.yaml
2024-08-22 14:23:20 +02:00

35 lines
723 B
YAML

version: '3.8'
services:
app:
image: nginx
environment:
SERVICE_FQDN_APP: /app
APP_KEY: base64
APP_DEBUG: '${APP_DEBUG:-false}'
APP_URL: $SERVICE_FQDN_APP
volumes:
- './html:/var/www/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
networks:
default:
ipv4_address: 127.0.0.1