fix azimutt

This commit is contained in:
peaklabs-dev
2024-10-08 12:40:56 +02:00
parent 37bc2643a5
commit 1034d9c315
3 changed files with 60 additions and 51 deletions

BIN
public/svgs/azimutt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -1,6 +0,0 @@
<svg width="453" height="202" viewBox="0 0 453 202" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M94.6641 142C88.3164 124.52 75.5723 89.5098 56.4316 36.9707C54.6738 36.9707 51.1582 36.9707 45.8848 36.9707C39.5371 54.4512 26.8418 89.4609 7.79883 142C9.55664 142 13.0234 142 18.1992 142C23.668 126.961 34.6543 96.834 51.1582 51.6191C56.627 66.6582 67.6133 96.7852 84.1172 142C85.875 142 89.3906 142 94.6641 142ZM122.496 133.211C128.16 125.301 139.439 109.529 156.334 85.8965C156.334 84.4316 156.334 81.502 156.334 77.1074C148.814 77.1074 133.873 77.1074 111.51 77.1074C111.51 78.5723 111.51 81.502 111.51 85.8965C116.881 85.8965 127.525 85.8965 143.443 85.8965C137.779 93.8066 126.549 109.578 109.752 133.211C109.752 134.676 109.752 137.654 109.752 142.146C117.857 142.146 134.02 142.146 158.238 142.146C158.238 140.682 158.238 137.703 158.238 133.211C152.281 133.211 140.367 133.211 122.496 133.211ZM183.873 142C183.873 131.16 183.873 109.529 183.873 77.1074C182.115 77.1074 178.6 77.1074 173.326 77.1074C173.326 87.8496 173.326 109.48 173.326 142C175.084 142 178.6 142 183.873 142ZM178.6 60.9941C180.064 60.9941 181.285 60.457 182.262 59.3828C183.336 58.4063 183.873 57.1855 183.873 55.7207C183.873 54.3535 183.336 53.1328 182.262 52.0586C181.285 50.9844 180.064 50.4473 178.6 50.4473C177.135 50.4473 175.865 50.9844 174.791 52.0586C173.814 53.1328 173.326 54.3535 173.326 55.7207C173.326 57.1855 173.814 58.4063 174.791 59.3828C175.865 60.457 177.135 60.9941 178.6 60.9941ZM258.727 77.1074C255.113 77.1074 251.744 77.8398 248.619 79.3047C245.396 80.8672 242.711 82.9668 240.562 85.6035C238.414 82.9668 235.777 80.8672 232.652 79.3047C229.527 77.8398 226.109 77.1074 222.398 77.1074C215.855 77.1074 210.338 79.3535 205.846 83.8457C201.256 88.4355 198.961 93.9531 198.961 100.398C198.961 109.676 198.961 123.543 198.961 142C200.719 142 204.186 142 209.361 142C209.361 135.066 209.361 121.199 209.361 100.398C209.361 96.7852 210.631 93.709 213.17 91.1699C215.709 88.6309 218.785 87.3613 222.398 87.3613C225.914 87.3613 228.941 88.6309 231.48 91.1699C234.02 93.709 235.289 96.7852 235.289 100.398C235.289 109.676 235.289 123.543 235.289 142C237.047 142 240.562 142 245.836 142C245.836 135.066 245.836 121.199 245.836 100.398C245.836 96.7852 247.105 93.709 249.645 91.1699C252.184 88.6309 255.211 87.3613 258.727 87.3613C262.34 87.3613 265.416 88.6309 267.955 91.1699C270.494 93.709 271.764 96.7852 271.764 100.398C271.764 109.676 271.764 123.543 271.764 142C273.521 142 277.037 142 282.311 142C282.311 135.066 282.311 121.199 282.311 100.398C282.311 93.9531 280.016 88.4355 275.426 83.8457C270.836 79.3535 265.27 77.1074 258.727 77.1074ZM339 77.1074C339 83.5527 339 96.541 339 116.072C339 120.369 337.486 123.982 334.459 126.912C331.432 129.939 327.721 131.453 323.326 131.453C319.127 131.453 315.465 129.939 312.34 126.912C309.312 123.982 307.799 120.369 307.799 116.072C307.799 107.381 307.799 94.3926 307.799 77.1074C306.041 77.1074 302.574 77.1074 297.398 77.1074C297.398 83.5527 297.398 96.541 297.398 116.072C297.398 123.299 299.938 129.402 305.016 134.383C310.094 139.461 316.197 142 323.326 142C330.553 142 336.705 139.461 341.783 134.383C346.959 129.402 349.547 123.299 349.547 116.072C349.547 107.381 349.547 94.3926 349.547 77.1074C347.789 77.1074 344.273 77.1074 339 77.1074ZM375.182 87.3613C378.893 87.3613 386.217 87.3613 397.154 87.3613C397.154 85.7012 397.154 82.2832 397.154 77.1074C393.541 77.1074 386.217 77.1074 375.182 77.1074C375.182 70.3691 375.182 56.9902 375.182 36.9707C373.424 36.9707 369.908 36.9707 364.635 36.9707C364.635 49.0801 364.635 73.25 364.635 109.48C364.635 118.465 367.809 126.131 374.156 132.479C380.504 138.826 388.17 142 397.154 142C397.154 139.656 397.154 136.141 397.154 131.453C391.002 131.453 385.777 129.354 381.48 125.154C377.184 120.857 375.035 115.633 375.035 109.48C375.035 109.48 375.084 109.48 375.182 109.48C375.182 105.77 375.182 98.3965 375.182 87.3613ZM422.936 87.3613C426.646 87.3613 433.971 87.3613 444.908 87.3613C444.908 85.7012 444.908 82.2832 444.908 77.1074C441.295 77.1074 433.971 77.1074 422.936 77.1074C422.936 70.3691 422.936 56.9902 422.936 36.9707C421.178 36.9707 417.662 36.9707 412.389 36.9707C412.389 49.0801 412.389 73.25 412.389 109.48C412.389 118.465 415.562 126.131 421.91 132.479C428.258 138.826 435.924 142 444.908 142C444.908 139.656 444.908 136.141 444.908 131.453C438.756 131.453 433.531 129.354 429.234 125.154C424.938 120.857 422.789 115.633 422.789 109.48C422.789 109.48 422.838 109.48 422.936 109.48C422.936 105.77 422.936 98.3965 422.936 87.3613Z"
fill="#111827"/>
<path d="M227.371 160.916C201.358 158.838 150.685 162.879 102.641 170.862L91.2999 172.749C59.4209 178.062 42.1999 181.766 30.0039 185.934C25.2439 187.561 24.8279 187.778 24.8739 188.61C24.9439 189.824 25.7019 189.731 34.4689 187.434C43.5409 185.057 51.6189 183.514 73.7149 179.938C147.565 167.986 181.869 164.492 219.942 165.046C227.403 165.154 239.192 166.742 239.112 167.628C239.005 168.811 231.238 171.938 213.362 177.994C191.37 185.444 177.932 190.528 176.661 191.878C174.488 194.186 176.459 196.285 181.103 196.612C183.757 196.799 184.366 196.769 196.696 195.832C232.097 193.146 254.64 192.344 285.061 192.689C331.388 193.215 360.782 194.919 415.849 200.273C435.636 202.197 436.663 202.253 440.406 201.605L440.472 201.594C441.673 201.391 442.002 199.769 440.871 199.259C437.96 197.949 435.978 197.655 418.823 195.998C361.314 190.442 330.952 188.638 286.764 188.156C263.525 187.902 253.147 188.04 236.137 188.83C224.508 189.37 193.766 191.324 189.441 191.797C187.082 192.056 197.574 188.172 215.945 181.987C239.184 174.162 243.879 171.838 244.249 167.982C244.666 163.634 240.72 161.982 227.371 160.916V160.916Z"
fill="#111827"/>
</svg>

Before

Width:  |  Height:  |  Size: 5.6 KiB

View File

@@ -1,76 +1,91 @@
# 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
# icon: svgs/azimutt.svg
# logo: svgs/azimutt.svg
# port: 4000
services:
database:
image: postgres
restart: always
container_name: azimutt-db
postgres:
image: postgres:15
environment:
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRESQL
- POSTGRES_USER=$SERVICE_USER_POSTGRESQL
- POSTGRES_DB=azimutt_app
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRE
- POSTGRES_USER=$SERVICE_USER_POSTGRE
- POSTGRES_DB=azimutt
volumes:
- pg-data:/var/lib/postgresql/data
storage:
image: quay.io/minio/minio:latest
- 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
command: server /data --console-address ":9001"
environment:
- MINIO_SERVER_URL=$MINIO_SERVER_URL
- MINIO_BROWSER_REDIRECT_URL=$MINIO_BROWSER_REDIRECT_URL
- SERVICE_FQDN_MINIO_9001
- MINIO_SERVER_URL=$SERVICE_FQDN_MINIO_9001
- MINIO_BROWSER_REDIRECT_URL=$SERVICE_FQDN_MINIO_9001
- MINIO_ROOT_USER=$SERVICE_USER_MINIO
- MINIO_ROOT_PASSWORD=$SERVICE_PASSWORD_MINIO
volumes:
- minio-data:/data
- azimutt-minio-data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
createbuckets:
image: minio/mc
image: minio/mc:latest
depends_on:
- storage
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://storage:9000 $SERVICE_USER_MINIO $SERVICE_PASSWORD_MINIO;
/usr/bin/mc mb -p myminio/azimutt;
/usr/bin/mc policy download myminio/azimutt;
exit 0;
/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;
"
smtp:
image: bytemark/smtp
image: bytemark/smtp:latest
platform: linux/amd64
environment:
- RELAY_HOST=$SERVICE_URL_SMTP
- RELAY_PORT=587
- SERVICE_FQDN_SMTP
- RELAY_HOST=$SERVICE_FQDN_SMTP
- RELAY_PORT=${RELAY_PORT:-587}
- RELAY_USERNAME=$SERVICE_EMAIL_SMTP
- RELAY_PASSWORD=$SERVICE_PASSWORD_SMTP
backend:
container_name: azimutt-backend
platform: linux/amd64
restart: always
image: ghcr.io/azimuttapp/azimutt:main
depends_on:
- database
- storage
ports:
- 4000:4000
postgres:
condition: service_healthy
minio:
condition: service_healthy
environment:
- SERVICE_FQDN_AZIMUTT
- SERVICE_FQDN_AZIMUTT_4000
- PHX_SERVER=true
- PHX_HOST=$SERVICE_FQDN_AZIMUTT
- PORT=4000
- DATABASE_URL=ecto://$SERVICE_USER_POSTGRESQL:$SERVICE_PASSWORD_POSTGRESQL@database/azimutt_app
- SECRET_KEY_BASE=$SERVICE_PASSWORD_64_AZIMUTT
- FILE_STORAGE_ADAPTER=s3
- S3_BUCKET=azimutt
- S3_HOST=$MINIO_SERVER_URL
- S3_KEY_ID=$SERVICE_USER_MINIO
- S3_KEY_SECRET=$SERVICE_PASSWORD_MINIO
- AUTH_PASSWORD=true
- SKIP_ONBOARDING_FUNNEL=true
- SKIP_EMAIL_CONFIRMATION=true
- PUBLIC_SITE=false
- EMAIL_ADAPTER=smtp
- SMTP_RELAY=$SERVICE_URL_SMTP
- 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}
- S3_BUCKET=${S3_BUCKET:-azimutt}
- S3_HOST=${S3_HOST:-minio}
- S3_KEY_ID=${S3_KEY_ID:-minio}
- S3_KEY_SECRET=${S3_KEY_SECRET:-minio}
- AUTH_PASSWORD=${AUTH_PASSWORD:-true}
- SKIP_ONBOARDING_FUNNEL=${SKIP_ONBOARDING_FUNNEL:-true}
- SKIP_EMAIL_CONFIRMATION=${SKIP_EMAIL_CONFIRMATION:-true}
- PUBLIC_SITE=${PUBLIC_SITE:-false}
- EMAIL_ADAPTER=${EMAIL_ADAPTER:-smtp}
- SMTP_RELAY=$SERVICE_FQDN_SMTP
- SMTP_USERNAME=$SERVICE_EMAIL_SMTP
- SMTP_PASSWORD=$SERVICE_PASSWORD_SMTP
- SMTP_PORT=587
- SMTP_PORT=${SMTP_PORT:-587}