Merge pull request #1832 from estubmo/main

Upgrade Appwrite service template to 1.5
This commit is contained in:
Andras Bacsai 2024-04-16 12:56:54 +02:00 committed by GitHub
commit 92ee2be021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 96 additions and 77 deletions

View File

@ -9,6 +9,7 @@ _APP_DOMAIN_FUNCTIONS=
_APP_CONSOLE_WHITELIST_ROOT=enabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
_APP_CONSOLE_HOSTNAMES=localhost,appwrite.io,*.appwrite.io
_APP_SYSTEM_EMAIL_NAME=Appwrite
_APP_SYSTEM_EMAIL_ADDRESS=team@appwrite.io
_APP_SYSTEM_RESPONSE_FORMAT=
@ -30,10 +31,6 @@ _APP_DB_SCHEMA=appwrite
_APP_DB_USER=$SERVICE_USER_MYSQL
_APP_DB_PASS=$SERVICE_PASSWORD_MYSQL
_APP_DB_ROOT_PASS=$SERVICE_PASSWORD_ROOTMYSQL
_APP_INFLUXDB_HOST=appwrite-influxdb
_APP_INFLUXDB_PORT=8086
_APP_STATSD_HOST=appwrite-telegraf
_APP_STATSD_PORT=8125
_APP_SMTP_HOST=
_APP_SMTP_PORT=
_APP_SMTP_SECURE=
@ -93,6 +90,7 @@ _APP_VCS_GITHUB_APP_ID=
_APP_VCS_GITHUB_CLIENT_ID=
_APP_VCS_GITHUB_CLIENT_SECRET=
_APP_VCS_GITHUB_WEBHOOK_SECRET=
_APP_MAINTENANCE_DELAY=
_APP_MAINTENANCE_INTERVAL=86400
_APP_MAINTENANCE_RETENTION_CACHE=2592000
_APP_MAINTENANCE_RETENTION_EXECUTION=1209600

View File

@ -15,7 +15,7 @@ version: '3'
services:
appwrite:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
container_name: appwrite
<<: *x-logging
volumes:
@ -27,8 +27,6 @@ services:
depends_on:
- appwrite-mariadb
- appwrite-redis
# - appwrite-clamav
- appwrite-influxdb
environment:
- SERVICE_FQDN_APPWRITE=/
- _APP_ENV
@ -37,6 +35,7 @@ services:
- _APP_CONSOLE_WHITELIST_ROOT
- _APP_CONSOLE_WHITELIST_EMAILS
- _APP_CONSOLE_WHITELIST_IPS
- _APP_CONSOLE_HOSTNAMES
- _APP_SYSTEM_EMAIL_NAME
- _APP_SYSTEM_EMAIL_ADDRESS
- _APP_SYSTEM_SECURITY_EMAIL_ADDRESS
@ -62,8 +61,6 @@ services:
- _APP_SMTP_USERNAME
- _APP_SMTP_PASSWORD
- _APP_USAGE_STATS
- _APP_INFLUXDB_HOST
- _APP_INFLUXDB_PORT
- _APP_STORAGE_LIMIT
- _APP_STORAGE_PREVIEW_LIMIT
- _APP_STORAGE_ANTIVIRUS
@ -100,9 +97,8 @@ services:
- _APP_EXECUTOR_HOST
- _APP_LOGGING_PROVIDER
- _APP_LOGGING_CONFIG
- _APP_STATSD_HOST
- _APP_STATSD_PORT
- _APP_MAINTENANCE_INTERVAL
- _APP_MAINTENANCE_DELAY
- _APP_MAINTENANCE_RETENTION_EXECUTION
- _APP_MAINTENANCE_RETENTION_CACHE
- _APP_MAINTENANCE_RETENTION_ABUSE
@ -125,7 +121,7 @@ services:
- _APP_ASSISTANT_OPENAI_API_KEY
appwrite-realtime:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
entrypoint: realtime
<<: *x-logging
depends_on:
@ -151,7 +147,7 @@ services:
- _APP_LOGGING_CONFIG
appwrite-worker-audits:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
entrypoint: worker-audits
<<: *x-logging
container_name: appwrite-worker-audits
@ -175,7 +171,7 @@ services:
- _APP_LOGGING_CONFIG
appwrite-worker-webhooks:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
entrypoint: worker-webhooks
<<: *x-logging
container_name: appwrite-worker-webhooks
@ -195,7 +191,7 @@ services:
- _APP_LOGGING_CONFIG
appwrite-worker-deletes:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
entrypoint: worker-deletes
<<: *x-logging
container_name: appwrite-worker-deletes
@ -248,7 +244,7 @@ services:
- _APP_EXECUTOR_HOST
appwrite-worker-databases:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
entrypoint: worker-databases
<<: *x-logging
container_name: appwrite-worker-databases
@ -272,7 +268,7 @@ services:
- _APP_LOGGING_CONFIG
appwrite-worker-builds:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
entrypoint: worker-builds
<<: *x-logging
container_name: appwrite-worker-builds
@ -331,7 +327,7 @@ services:
- _APP_STORAGE_WASABI_BUCKET
appwrite-worker-certificates:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
entrypoint: worker-certificates
<<: *x-logging
container_name: appwrite-worker-certificates
@ -362,7 +358,7 @@ services:
- _APP_LOGGING_CONFIG
appwrite-worker-functions:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
entrypoint: worker-functions
<<: *x-logging
container_name: appwrite-worker-functions
@ -396,7 +392,7 @@ services:
- _APP_LOGGING_PROVIDER
appwrite-worker-mails:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
entrypoint: worker-mails
<<: *x-logging
container_name: appwrite-worker-mails
@ -421,7 +417,7 @@ services:
- _APP_LOGGING_CONFIG
appwrite-worker-messaging:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
entrypoint: worker-messaging
<<: *x-logging
container_name: appwrite-worker-messaging
@ -430,17 +426,23 @@ services:
environment:
- _APP_ENV
- _APP_WORKER_PER_CORE
- _APP_OPENSSL_KEY_V1
- _APP_REDIS_HOST
- _APP_REDIS_PORT
- _APP_REDIS_USER
- _APP_REDIS_PASS
- _APP_SMS_PROVIDER
- _APP_SMS_FROM
- _APP_DB_HOST
- _APP_DB_PORT
- _APP_DB_SCHEMA
- _APP_DB_USER
- _APP_DB_PASS
- _APP_LOGGING_PROVIDER
- _APP_LOGGING_CONFIG
- _APP_SMS_FROM
- _APP_SMS_PROVIDER
appwrite-worker-migrations:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
entrypoint: worker-migrations
<<: *x-logging
container_name: appwrite-worker-migrations
@ -468,7 +470,7 @@ services:
- _APP_MIGRATIONS_FIREBASE_CLIENT_SECRET
appwrite-maintenance:
image: appwrite/appwrite:1.4
image: appwrite/appwrite:1.5
entrypoint: maintenance
<<: *x-logging
container_name: appwrite-maintenance
@ -498,13 +500,14 @@ services:
- _APP_MAINTENANCE_RETENTION_USAGE_HOURLY
- _APP_MAINTENANCE_RETENTION_SCHEDULES
appwrite-usage:
image: appwrite/appwrite:1.4
entrypoint: usage
container_name: appwrite-usage
appwrite-worker-usage:
image: appwrite/appwrite:1.5.1
entrypoint: worker-usage
container_name: appwrite-worker-usage
<<: *x-logging
restart: unless-stopped
depends_on:
- appwrite-influxdb
- appwrite-redis
- appwrite-mariadb
environment:
- _APP_ENV
@ -515,9 +518,6 @@ services:
- _APP_DB_SCHEMA
- _APP_DB_USER
- _APP_DB_PASS
- _APP_INFLUXDB_HOST
- _APP_INFLUXDB_PORT
- _APP_USAGE_AGGREGATION_INTERVAL
- _APP_REDIS_HOST
- _APP_REDIS_PORT
- _APP_REDIS_USER
@ -525,12 +525,40 @@ services:
- _APP_USAGE_STATS
- _APP_LOGGING_PROVIDER
- _APP_LOGGING_CONFIG
- _APP_USAGE_AGGREGATION_INTERVAL
appwrite-schedule:
image: appwrite/appwrite:1.4
entrypoint: schedule
container_name: appwrite-schedule
appwrite-worker-usage-dump:
image: appwrite/appwrite:1.5.1
entrypoint: worker-usage-dump
<<: *x-logging
container_name: appwrite-worker-usage-dump
depends_on:
- appwrite-redis
- appwrite-mariadb
environment:
- _APP_ENV
- _APP_WORKER_PER_CORE
- _APP_OPENSSL_KEY_V1
- _APP_DB_HOST
- _APP_DB_PORT
- _APP_DB_SCHEMA
- _APP_DB_USER
- _APP_DB_PASS
- _APP_REDIS_HOST
- _APP_REDIS_PORT
- _APP_REDIS_USER
- _APP_REDIS_PASS
- _APP_USAGE_STATS
- _APP_LOGGING_PROVIDER
- _APP_LOGGING_CONFIG
- _APP_USAGE_AGGREGATION_INTERVAL
appwrite-scheduler-functions:
image: appwrite/appwrite:1.5
entrypoint: schedule-functions
container_name: appwrite-scheduler-functions
<<: *x-logging
restart: unless-stopped
depends_on:
- appwrite-mariadb
- appwrite-redis
@ -548,26 +576,44 @@ services:
- _APP_DB_USER
- _APP_DB_PASS
# appwrite-assistant:
# image: appwrite/assistant:0.2.1
# container_name: appwrite-assistant
# <<: *x-logging
#
# environment:
# - _APP_ASSISTANT_OPENAI_API_KEY
appwrite-scheduler-messages:
image: appwrite/appwrite:1.5
entrypoint: schedule-messages
container_name: appwrite-scheduler-messages
<<: *x-logging
restart: unless-stopped
depends_on:
- appwrite-mariadb
- appwrite-redis
environment:
- _APP_ENV
- _APP_WORKER_PER_CORE
- _APP_OPENSSL_KEY_V1
- _APP_REDIS_HOST
- _APP_REDIS_PORT
- _APP_REDIS_USER
- _APP_REDIS_PASS
- _APP_DB_HOST
- _APP_DB_PORT
- _APP_DB_SCHEMA
- _APP_DB_USER
- _APP_DB_PASS
appwrite-assistant:
image: appwrite/assistant:0.4.0
container_name: appwrite-assistant
environment:
- _APP_ASSISTANT_OPENAI_API_KEY
openruntimes-executor:
container_name: openruntimes-executor
hostname: appwrite-executor
<<: *x-logging
stop_signal: SIGINT
image: openruntimes/executor:0.4.1
image: openruntimes/executor:0.4.9
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- appwrite-builds:/storage/builds:rw
- appwrite-functions:/storage/functions:rw
# Host mount necessary to share files between executor and runtimes.
# It's not possible to share mount file between 2 containers without host mount (copying is too slow)
- /tmp:/tmp:rw
environment:
- OPR_EXECUTOR_INACTIVE_TRESHOLD=$_APP_FUNCTIONS_INACTIVE_THRESHOLD
@ -603,7 +649,7 @@ services:
- OPR_EXECUTOR_STORAGE_WASABI_BUCKET=$_APP_STORAGE_WASABI_BUCKET
appwrite-mariadb:
image: mariadb:10.7 # fix issues when upgrading using: mysql_upgrade -u root -p
image: mariadb:10.11
container_name: appwrite-mariadb
<<: *x-logging
volumes:
@ -614,9 +660,8 @@ services:
- MYSQL_USER=${_APP_DB_USER}
- MYSQL_PASSWORD=${_APP_DB_PASS}
command: 'mysqld --innodb-flush-method=fsync'
appwrite-redis:
image: redis:7.0.4-alpine
image: redis:7.2.4-alpine
container_name: appwrite-redis
<<: *x-logging
command: >
@ -626,29 +671,6 @@ services:
--maxmemory-samples 5
volumes:
- appwrite-redis:/data:rw
# appwrite-clamav:
# image: appwrite/clamav:1.2.0
# container_name: appwrite-clamav
#
# volumes:
# - appwrite-uploads:/storage/uploads
appwrite-influxdb:
image: appwrite/influxdb:1.5.0
container_name: appwrite-influxdb
<<: *x-logging
volumes:
- appwrite-influxdb:/var/lib/influxdb:rw
appwrite-telegraf:
image: appwrite/telegraf:1.4.0
container_name: appwrite-telegraf
<<: *x-logging
environment:
- _APP_INFLUXDB_HOST
- _APP_INFLUXDB_PORT
volumes:
appwrite-mariadb:
appwrite-redis:
@ -657,5 +679,4 @@ volumes:
appwrite-certificates:
appwrite-functions:
appwrite-builds:
appwrite-influxdb:
appwrite-config:

File diff suppressed because one or more lines are too long