coolify/templates/compose/azimutt.yaml

99 lines
3.1 KiB
YAML
Raw Normal View History

# ignore: true
2024-06-26 07:51:12 +00:00
# documentation: https://docs.azimutt.app/
# slogan: Next-Gen ERD: Design, Explore, Document and Analyze your database.
# tags: erd, entity-relationship diagram, database tool, database schema, diagram
2024-10-08 10:40:56 +00:00
# logo: svgs/azimutt.svg
2024-06-26 07:51:12 +00:00
# port: 4000
services:
2024-10-08 10:40:56 +00:00
postgres:
image: postgres:15
2024-06-26 07:51:12 +00:00
environment:
2024-10-08 10:40:56 +00:00
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRE
- POSTGRES_USER=$SERVICE_USER_POSTGRE
- POSTGRES_DB=azimutt
2024-06-26 07:51:12 +00:00
volumes:
2024-10-08 10:40:56 +00:00
- azimutt-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $SERVICE_USER_POSTGRESQL"]
interval: 10s
timeout: 5s
retries: 5
minio:
image: minio/minio:latest
2024-06-26 07:51:12 +00:00
command: server /data --console-address ":9001"
environment:
2024-10-08 10:40:56 +00:00
- SERVICE_FQDN_MINIO_9001
- MINIO_SERVER_URL=$SERVICE_FQDN_MINIO_9001
- MINIO_BROWSER_REDIRECT_URL=$SERVICE_FQDN_MINIO_9001
2024-06-26 07:51:12 +00:00
- MINIO_ROOT_USER=$SERVICE_USER_MINIO
- MINIO_ROOT_PASSWORD=$SERVICE_PASSWORD_MINIO
volumes:
2024-10-08 10:40:56 +00:00
- azimutt-minio-data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
2024-06-26 07:51:12 +00:00
createbuckets:
2024-10-08 10:40:56 +00:00
image: minio/mc:latest
2024-06-26 07:51:12 +00:00
depends_on:
2024-10-08 10:40:56 +00:00
minio:
condition: service_healthy
2024-06-26 07:51:12 +00:00
entrypoint: >
/bin/sh -c "
2024-10-08 10:40:56 +00:00
/usr/bin/mc config host add myminio http://minio:9000 $SERVICE_USER_MINIO $SERVICE_PASSWORD_MINIO;
/usr/bin/mc mb -p myminio/azimutt;
/usr/bin/mc policy download myminio/azimutt;
exit 0;
2024-06-26 07:51:12 +00:00
"
2024-10-08 10:40:56 +00:00
2024-06-26 07:51:12 +00:00
smtp:
2024-10-08 10:40:56 +00:00
image: bytemark/smtp:latest
platform: linux/amd64
2024-06-26 07:51:12 +00:00
environment:
2024-10-08 10:40:56 +00:00
- SERVICE_FQDN_SMTP
- RELAY_HOST=$SERVICE_FQDN_SMTP
- RELAY_PORT=${RELAY_PORT:-587}
2024-06-26 07:51:12 +00:00
- RELAY_USERNAME=$SERVICE_EMAIL_SMTP
- RELAY_PASSWORD=$SERVICE_PASSWORD_SMTP
2024-10-08 10:40:56 +00:00
2024-06-26 07:51:12 +00:00
backend:
container_name: azimutt-backend
platform: linux/amd64
image: ghcr.io/azimuttapp/azimutt:main
depends_on:
2024-10-08 10:40:56 +00:00
postgres:
condition: service_healthy
minio:
condition: service_healthy
2024-06-26 07:51:12 +00:00
environment:
2024-10-08 10:40:56 +00:00
- SERVICE_FQDN_AZIMUTT_4000
2024-06-26 07:51:12 +00:00
- PHX_SERVER=true
2024-10-08 10:40:56 +00:00
- PHX_HOST=$SERVICE_FQDN_AZIMUTT_4000
- PORT=${PORT:-4000}
- DATABASE_URL=ecto://$SERVICE_USER_POSTGRESQL:$SERVICE_PASSWORD_POSTGRESQL@postgres/azimutt
- SECRET_KEY_BASE=$SERVICE_BASE64_64_AZIMUTT
- FILE_STORAGE_ADAPTER=${FILE_STORAGE_ADAPTER:-s3}
- AUTH_PASSWORD=${AUTH_PASSWORD:-true}
- SKIP_ONBOARDING_FUNNEL=${SKIP_ONBOARDING_FUNNEL:-true}
- SKIP_EMAIL_CONFIRMATION=${SKIP_EMAIL_CONFIRMATION:-true}
- PUBLIC_SITE=${PUBLIC_SITE:-false}
2024-10-08 13:39:58 +00:00
- S3_BUCKET=${S3_BUCKET}
- S3_HOST=${S3_HOST}
- S3_KEY_ID=${S3_KEY_ID}
- S3_KEY_SECRET=${S3_KEY_SECRET}
2024-10-08 10:40:56 +00:00
- EMAIL_ADAPTER=${EMAIL_ADAPTER:-smtp}
- SMTP_RELAY=$SERVICE_FQDN_SMTP
2024-06-26 07:51:12 +00:00
- SMTP_USERNAME=$SERVICE_EMAIL_SMTP
- SMTP_PASSWORD=$SERVICE_PASSWORD_SMTP
2024-10-08 10:40:56 +00:00
- SMTP_PORT=${SMTP_PORT:-587}
2024-10-08 19:19:46 +00:00
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${PORT:-4000}/ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s