lasthourcloud/docker-compose.prod.yml

47 lines
1001 B
YAML
Raw Normal View History

2023-04-12 19:23:32 +00:00
version: '3.8'
services:
coolify:
2023-04-27 07:38:04 +00:00
image: "ghcr.io/coollabsio/coolify:${APP_TAG:-v4.0.0-nightly.0}"
2023-04-13 13:48:27 +00:00
container_name: coolify
2023-04-12 19:23:32 +00:00
environment:
2023-04-13 13:48:27 +00:00
- APP_ENV=production
- APP_DEBUG
- APP_NAME
- APP_KEY
- APP_URL
- DB_CONNECTION
- DB_HOST
- DB_PORT
- DB_DATABASE
- DB_USERNAME
- DB_PASSWORD
- QUEUE_CONNECTION
- SSL_MODE=off
ports:
- "${APP_PORT:-8000}:80"
depends_on:
postgres:
condition: service_healthy
2023-04-12 19:23:32 +00:00
postgres:
2023-04-13 13:48:27 +00:00
container_name: coolify-db
volumes:
- coolify-db:/var/lib/postgresql/data
2023-04-12 19:23:32 +00:00
environment:
POSTGRES_USER: "${DB_USERNAME}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
POSTGRES_DB: "${DB_DATABASE}"
2023-04-13 13:48:27 +00:00
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U ${DB_USERNAME}",
"-d",
"${DB_DATABASE}"
]
interval: 2s
retries: 5
timeout: 2s
volumes:
coolify-db:
name: coolify-db