2022-03-29 22:48:49 +13:00
|
|
|
x-logging: &x-logging
|
|
|
|
logging:
|
|
|
|
driver: 'json-file'
|
|
|
|
options:
|
2022-05-17 02:04:40 +12:00
|
|
|
max-file: '5'
|
|
|
|
max-size: '10m'
|
2021-02-11 22:54:43 +13:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$httpPort = $this->getParam('httpPort', '');
|
|
|
|
$httpsPort = $this->getParam('httpsPort', '');
|
|
|
|
$version = $this->getParam('version', '');
|
2021-05-18 20:34:19 +12:00
|
|
|
$organization = $this->getParam('organization', '');
|
|
|
|
$image = $this->getParam('image', '');
|
2021-02-11 22:54:43 +13:00
|
|
|
?>version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
traefik:
|
2024-02-01 02:36:35 +13:00
|
|
|
image: traefik:2.11
|
2021-02-11 22:54:43 +13:00
|
|
|
container_name: appwrite-traefik
|
2022-05-17 23:10:50 +12:00
|
|
|
<<: *x-logging
|
2021-02-11 22:54:43 +13:00
|
|
|
command:
|
|
|
|
- --providers.file.directory=/storage/config
|
|
|
|
- --providers.file.watch=true
|
|
|
|
- --providers.docker=true
|
|
|
|
- --providers.docker.exposedByDefault=false
|
|
|
|
- --providers.docker.constraints=Label(`traefik.constraint-label-stack`,`appwrite`)
|
2021-03-05 05:37:20 +13:00
|
|
|
- --entrypoints.appwrite_web.address=:80
|
|
|
|
- --entrypoints.appwrite_websecure.address=:443
|
2021-02-11 22:54:43 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- <?php echo $httpPort; ?>:80
|
|
|
|
- <?php echo $httpsPort; ?>:443
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- appwrite-config:/storage/config:ro
|
|
|
|
- appwrite-certificates:/storage/certificates:ro
|
|
|
|
depends_on:
|
|
|
|
- appwrite
|
|
|
|
networks:
|
|
|
|
- gateway
|
|
|
|
- appwrite
|
2021-12-22 04:29:09 +13:00
|
|
|
|
2021-02-11 22:54:43 +13:00
|
|
|
appwrite:
|
2021-05-18 20:04:51 +12:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2021-02-11 22:54:43 +13:00
|
|
|
container_name: appwrite
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2021-02-11 22:54:43 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.constraint-label-stack=appwrite
|
2021-03-05 05:37:20 +13:00
|
|
|
- traefik.docker.network=appwrite
|
|
|
|
- traefik.http.services.appwrite_api.loadbalancer.server.port=80
|
|
|
|
#http
|
|
|
|
- traefik.http.routers.appwrite_api_http.entrypoints=appwrite_web
|
|
|
|
- traefik.http.routers.appwrite_api_http.rule=PathPrefix(`/`)
|
|
|
|
- traefik.http.routers.appwrite_api_http.service=appwrite_api
|
|
|
|
# https
|
|
|
|
- traefik.http.routers.appwrite_api_https.entrypoints=appwrite_websecure
|
|
|
|
- traefik.http.routers.appwrite_api_https.rule=PathPrefix(`/`)
|
|
|
|
- traefik.http.routers.appwrite_api_https.service=appwrite_api
|
|
|
|
- traefik.http.routers.appwrite_api_https.tls=true
|
2021-02-11 22:54:43 +13:00
|
|
|
volumes:
|
|
|
|
- appwrite-uploads:/storage/uploads:rw
|
|
|
|
- appwrite-cache:/storage/cache:rw
|
|
|
|
- appwrite-config:/storage/config:rw
|
|
|
|
- appwrite-certificates:/storage/certificates:rw
|
2022-11-18 08:38:43 +13:00
|
|
|
- appwrite-functions:/storage/functions:rw
|
2021-02-11 22:54:43 +13:00
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- redis
|
2021-04-04 14:10:56 +12:00
|
|
|
# - clamav
|
2021-02-11 22:54:43 +13:00
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2022-03-01 00:05:11 +13:00
|
|
|
- _APP_WORKER_PER_CORE
|
2021-04-04 13:30:41 +12:00
|
|
|
- _APP_LOCALE
|
2021-05-13 02:53:25 +12:00
|
|
|
- _APP_CONSOLE_WHITELIST_ROOT
|
2021-02-22 18:56:36 +13:00
|
|
|
- _APP_CONSOLE_WHITELIST_EMAILS
|
|
|
|
- _APP_CONSOLE_WHITELIST_IPS
|
2023-12-30 10:09:59 +13:00
|
|
|
- _APP_CONSOLE_HOSTNAMES
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_SYSTEM_EMAIL_NAME
|
|
|
|
- _APP_SYSTEM_EMAIL_ADDRESS
|
|
|
|
- _APP_SYSTEM_SECURITY_EMAIL_ADDRESS
|
2021-02-22 18:56:36 +13:00
|
|
|
- _APP_SYSTEM_RESPONSE_FORMAT
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_OPTIONS_ABUSE
|
2023-09-19 19:39:28 +12:00
|
|
|
- _APP_OPTIONS_ROUTER_PROTECTION
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_OPTIONS_FORCE_HTTPS
|
2023-09-19 19:35:32 +12:00
|
|
|
- _APP_OPTIONS_FUNCTIONS_FORCE_HTTPS
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
|
|
|
- _APP_DOMAIN
|
|
|
|
- _APP_DOMAIN_TARGET
|
2023-02-10 03:27:11 +13:00
|
|
|
- _APP_DOMAIN_FUNCTIONS
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _APP_REDIS_USER
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_REDIS_PASS
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
|
|
|
- _APP_DB_PASS
|
|
|
|
- _APP_SMTP_HOST
|
|
|
|
- _APP_SMTP_PORT
|
|
|
|
- _APP_SMTP_SECURE
|
|
|
|
- _APP_SMTP_USERNAME
|
|
|
|
- _APP_SMTP_PASSWORD
|
|
|
|
- _APP_USAGE_STATS
|
2021-02-11 22:59:11 +13:00
|
|
|
- _APP_STORAGE_LIMIT
|
2022-03-24 20:29:59 +13:00
|
|
|
- _APP_STORAGE_PREVIEW_LIMIT
|
2021-02-11 22:59:11 +13:00
|
|
|
- _APP_STORAGE_ANTIVIRUS
|
|
|
|
- _APP_STORAGE_ANTIVIRUS_HOST
|
|
|
|
- _APP_STORAGE_ANTIVIRUS_PORT
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_STORAGE_DEVICE
|
|
|
|
- _APP_STORAGE_S3_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_S3_SECRET
|
|
|
|
- _APP_STORAGE_S3_REGION
|
|
|
|
- _APP_STORAGE_S3_BUCKET
|
|
|
|
- _APP_STORAGE_DO_SPACES_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_DO_SPACES_SECRET
|
|
|
|
- _APP_STORAGE_DO_SPACES_REGION
|
|
|
|
- _APP_STORAGE_DO_SPACES_BUCKET
|
|
|
|
- _APP_STORAGE_BACKBLAZE_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_BACKBLAZE_SECRET
|
|
|
|
- _APP_STORAGE_BACKBLAZE_REGION
|
|
|
|
- _APP_STORAGE_BACKBLAZE_BUCKET
|
|
|
|
- _APP_STORAGE_LINODE_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_LINODE_SECRET
|
|
|
|
- _APP_STORAGE_LINODE_REGION
|
|
|
|
- _APP_STORAGE_LINODE_BUCKET
|
|
|
|
- _APP_STORAGE_WASABI_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_WASABI_SECRET
|
|
|
|
- _APP_STORAGE_WASABI_REGION
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_STORAGE_WASABI_BUCKET
|
2022-02-23 01:36:43 +13:00
|
|
|
- _APP_FUNCTIONS_SIZE_LIMIT
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_FUNCTIONS_TIMEOUT
|
2021-11-30 22:39:50 +13:00
|
|
|
- _APP_FUNCTIONS_BUILD_TIMEOUT
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_FUNCTIONS_CPUS
|
|
|
|
- _APP_FUNCTIONS_MEMORY
|
2021-04-30 03:08:59 +12:00
|
|
|
- _APP_FUNCTIONS_RUNTIMES
|
2022-03-16 23:11:04 +13:00
|
|
|
- _APP_EXECUTOR_SECRET
|
2022-04-12 06:37:07 +12:00
|
|
|
- _APP_EXECUTOR_HOST
|
2021-11-23 05:12:18 +13:00
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
2021-08-16 09:09:40 +12:00
|
|
|
- _APP_MAINTENANCE_INTERVAL
|
2024-02-12 14:18:19 +13:00
|
|
|
- _APP_MAINTENANCE_DELAY
|
2021-08-16 09:09:40 +12:00
|
|
|
- _APP_MAINTENANCE_RETENTION_EXECUTION
|
2022-08-18 01:02:01 +12:00
|
|
|
- _APP_MAINTENANCE_RETENTION_CACHE
|
2021-08-16 09:09:40 +12:00
|
|
|
- _APP_MAINTENANCE_RETENTION_ABUSE
|
|
|
|
- _APP_MAINTENANCE_RETENTION_AUDIT
|
2022-10-28 22:54:56 +13:00
|
|
|
- _APP_MAINTENANCE_RETENTION_USAGE_HOURLY
|
2022-11-17 03:14:45 +13:00
|
|
|
- _APP_MAINTENANCE_RETENTION_SCHEDULES
|
2022-08-15 01:43:41 +12:00
|
|
|
- _APP_SMS_PROVIDER
|
|
|
|
- _APP_SMS_FROM
|
2022-12-27 20:24:34 +13:00
|
|
|
- _APP_GRAPHQL_MAX_BATCH_SIZE
|
|
|
|
- _APP_GRAPHQL_MAX_COMPLEXITY
|
|
|
|
- _APP_GRAPHQL_MAX_DEPTH
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_VCS_GITHUB_APP_NAME
|
|
|
|
- _APP_VCS_GITHUB_PRIVATE_KEY
|
|
|
|
- _APP_VCS_GITHUB_APP_ID
|
|
|
|
- _APP_VCS_GITHUB_WEBHOOK_SECRET
|
|
|
|
- _APP_VCS_GITHUB_CLIENT_SECRET
|
|
|
|
- _APP_VCS_GITHUB_CLIENT_ID
|
|
|
|
- _APP_MIGRATIONS_FIREBASE_CLIENT_ID
|
|
|
|
- _APP_MIGRATIONS_FIREBASE_CLIENT_SECRET
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_ASSISTANT_OPENAI_API_KEY
|
2021-02-11 22:54:43 +13:00
|
|
|
|
2021-03-04 22:28:24 +13:00
|
|
|
appwrite-realtime:
|
2021-05-27 21:08:10 +12:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2021-03-04 22:28:24 +13:00
|
|
|
entrypoint: realtime
|
|
|
|
container_name: appwrite-realtime
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2021-03-04 22:28:24 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.constraint-label-stack=appwrite"
|
|
|
|
- "traefik.docker.network=appwrite"
|
|
|
|
- "traefik.http.services.appwrite_realtime.loadbalancer.server.port=80"
|
|
|
|
#ws
|
|
|
|
- traefik.http.routers.appwrite_realtime_ws.entrypoints=appwrite_web
|
|
|
|
- traefik.http.routers.appwrite_realtime_ws.rule=PathPrefix(`/v1/realtime`)
|
|
|
|
- traefik.http.routers.appwrite_realtime_ws.service=appwrite_realtime
|
|
|
|
# wss
|
|
|
|
- traefik.http.routers.appwrite_realtime_wss.entrypoints=appwrite_websecure
|
|
|
|
- traefik.http.routers.appwrite_realtime_wss.rule=PathPrefix(`/v1/realtime`)
|
|
|
|
- traefik.http.routers.appwrite_realtime_wss.service=appwrite_realtime
|
|
|
|
- traefik.http.routers.appwrite_realtime_wss.tls=true
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
2022-01-02 18:55:58 +13:00
|
|
|
- mariadb
|
2021-03-04 22:28:24 +13:00
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2022-03-01 00:05:11 +13:00
|
|
|
- _APP_WORKER_PER_CORE
|
2021-03-04 22:28:24 +13:00
|
|
|
- _APP_OPTIONS_ABUSE
|
2023-09-19 19:39:28 +12:00
|
|
|
- _APP_OPTIONS_ROUTER_PROTECTION
|
2021-03-04 22:28:24 +13:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2021-03-04 22:28:24 +13:00
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
|
|
|
- _APP_DB_PASS
|
2021-04-01 23:59:11 +13:00
|
|
|
- _APP_USAGE_STATS
|
2022-03-01 00:05:11 +13:00
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
2021-03-04 22:28:24 +13:00
|
|
|
|
2022-03-16 23:11:04 +13:00
|
|
|
appwrite-worker-audits:
|
2021-05-18 20:04:51 +12:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2022-03-16 23:11:04 +13:00
|
|
|
entrypoint: worker-audits
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2022-03-16 23:11:04 +13:00
|
|
|
container_name: appwrite-worker-audits
|
2021-02-11 22:54:43 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
2021-11-26 08:20:28 +13:00
|
|
|
- mariadb
|
2021-02-11 22:54:43 +13:00
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_WORKER_PER_CORE
|
2022-03-03 04:41:35 +13:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2021-11-26 08:20:28 +13:00
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
|
|
|
- _APP_DB_PASS
|
2022-03-03 03:47:26 +13:00
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
2021-02-11 22:54:43 +13:00
|
|
|
|
2022-03-16 23:11:04 +13:00
|
|
|
appwrite-worker-webhooks:
|
2022-01-31 22:51:12 +13:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2022-03-16 23:11:04 +13:00
|
|
|
entrypoint: worker-webhooks
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2022-03-16 23:11:04 +13:00
|
|
|
container_name: appwrite-worker-webhooks
|
2022-01-31 22:51:12 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_WORKER_PER_CORE
|
2022-03-03 04:41:35 +13:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
2022-03-16 23:11:04 +13:00
|
|
|
- _APP_SYSTEM_SECURITY_EMAIL_ADDRESS
|
2022-01-31 22:51:12 +13:00
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
|
|
|
|
2022-03-16 23:11:04 +13:00
|
|
|
appwrite-worker-deletes:
|
2021-05-18 20:04:51 +12:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2022-03-16 23:11:04 +13:00
|
|
|
entrypoint: worker-deletes
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2022-03-16 23:11:04 +13:00
|
|
|
container_name: appwrite-worker-deletes
|
2021-02-11 22:54:43 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
2023-12-30 10:09:59 +13:00
|
|
|
volumes:
|
2022-03-16 23:11:04 +13:00
|
|
|
- appwrite-uploads:/storage/uploads:rw
|
|
|
|
- appwrite-cache:/storage/cache:rw
|
2022-11-18 08:38:43 +13:00
|
|
|
- appwrite-functions:/storage/functions:rw
|
|
|
|
- appwrite-builds:/storage/builds:rw
|
2022-03-16 23:11:04 +13:00
|
|
|
- appwrite-certificates:/storage/certificates:rw
|
2021-02-11 22:54:43 +13:00
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_WORKER_PER_CORE
|
2022-03-03 04:41:35 +13:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _APP_REDIS_USER
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_REDIS_PASS
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
|
|
|
- _APP_DB_PASS
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_STORAGE_DEVICE
|
|
|
|
- _APP_STORAGE_S3_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_S3_SECRET
|
|
|
|
- _APP_STORAGE_S3_REGION
|
|
|
|
- _APP_STORAGE_S3_BUCKET
|
|
|
|
- _APP_STORAGE_DO_SPACES_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_DO_SPACES_SECRET
|
|
|
|
- _APP_STORAGE_DO_SPACES_REGION
|
|
|
|
- _APP_STORAGE_DO_SPACES_BUCKET
|
|
|
|
- _APP_STORAGE_BACKBLAZE_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_BACKBLAZE_SECRET
|
|
|
|
- _APP_STORAGE_BACKBLAZE_REGION
|
|
|
|
- _APP_STORAGE_BACKBLAZE_BUCKET
|
|
|
|
- _APP_STORAGE_LINODE_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_LINODE_SECRET
|
|
|
|
- _APP_STORAGE_LINODE_REGION
|
|
|
|
- _APP_STORAGE_LINODE_BUCKET
|
|
|
|
- _APP_STORAGE_WASABI_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_WASABI_SECRET
|
|
|
|
- _APP_STORAGE_WASABI_REGION
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_STORAGE_WASABI_BUCKET
|
2022-03-03 03:47:26 +13:00
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
2022-03-16 23:11:04 +13:00
|
|
|
- _APP_EXECUTOR_SECRET
|
2022-04-12 06:37:07 +12:00
|
|
|
- _APP_EXECUTOR_HOST
|
2021-02-11 22:54:43 +13:00
|
|
|
|
2022-06-22 22:51:49 +12:00
|
|
|
appwrite-worker-databases:
|
2021-05-18 20:04:51 +12:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2022-06-22 22:51:49 +12:00
|
|
|
entrypoint: worker-databases
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2022-06-22 22:51:49 +12:00
|
|
|
container_name: appwrite-worker-databases
|
2021-02-11 22:54:43 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_WORKER_PER_CORE
|
2022-03-03 04:41:35 +13:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2022-03-16 23:11:04 +13:00
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
|
|
|
- _APP_DB_PASS
|
2022-03-03 03:47:26 +13:00
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
2021-02-11 22:54:43 +13:00
|
|
|
|
2022-03-16 23:11:04 +13:00
|
|
|
appwrite-worker-builds:
|
2021-05-18 20:04:51 +12:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2022-03-16 23:11:04 +13:00
|
|
|
entrypoint: worker-builds
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2022-03-16 23:11:04 +13:00
|
|
|
container_name: appwrite-worker-builds
|
2021-02-11 22:54:43 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
2023-09-04 09:25:32 +12:00
|
|
|
volumes:
|
|
|
|
- appwrite-functions:/storage/functions:rw
|
|
|
|
- appwrite-builds:/storage/builds:rw
|
2021-02-11 22:54:43 +13:00
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_WORKER_PER_CORE
|
2022-03-03 04:41:35 +13:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
2022-03-16 23:11:04 +13:00
|
|
|
- _APP_EXECUTOR_SECRET
|
2022-04-12 06:37:07 +12:00
|
|
|
- _APP_EXECUTOR_HOST
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
|
|
|
- _APP_DB_PASS
|
2022-03-03 03:47:26 +13:00
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_VCS_GITHUB_APP_NAME
|
|
|
|
- _APP_VCS_GITHUB_PRIVATE_KEY
|
|
|
|
- _APP_VCS_GITHUB_APP_ID
|
|
|
|
- _APP_FUNCTIONS_TIMEOUT
|
|
|
|
- _APP_FUNCTIONS_BUILD_TIMEOUT
|
|
|
|
- _APP_FUNCTIONS_CPUS
|
|
|
|
- _APP_FUNCTIONS_MEMORY
|
2023-09-19 19:21:11 +12:00
|
|
|
- _APP_FUNCTIONS_SIZE_LIMIT
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_OPTIONS_FORCE_HTTPS
|
2023-09-19 19:35:32 +12:00
|
|
|
- _APP_OPTIONS_FUNCTIONS_FORCE_HTTPS
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_DOMAIN
|
2023-09-14 00:45:19 +12:00
|
|
|
- _APP_STORAGE_DEVICE
|
|
|
|
- _APP_STORAGE_S3_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_S3_SECRET
|
|
|
|
- _APP_STORAGE_S3_REGION
|
|
|
|
- _APP_STORAGE_S3_BUCKET
|
|
|
|
- _APP_STORAGE_DO_SPACES_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_DO_SPACES_SECRET
|
|
|
|
- _APP_STORAGE_DO_SPACES_REGION
|
|
|
|
- _APP_STORAGE_DO_SPACES_BUCKET
|
|
|
|
- _APP_STORAGE_BACKBLAZE_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_BACKBLAZE_SECRET
|
|
|
|
- _APP_STORAGE_BACKBLAZE_REGION
|
|
|
|
- _APP_STORAGE_BACKBLAZE_BUCKET
|
|
|
|
- _APP_STORAGE_LINODE_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_LINODE_SECRET
|
|
|
|
- _APP_STORAGE_LINODE_REGION
|
|
|
|
- _APP_STORAGE_LINODE_BUCKET
|
|
|
|
- _APP_STORAGE_WASABI_ACCESS_KEY
|
|
|
|
- _APP_STORAGE_WASABI_SECRET
|
|
|
|
- _APP_STORAGE_WASABI_REGION
|
|
|
|
- _APP_STORAGE_WASABI_BUCKET
|
2021-02-11 22:54:43 +13:00
|
|
|
|
|
|
|
appwrite-worker-certificates:
|
2021-05-18 20:04:51 +12:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2021-02-11 22:54:43 +13:00
|
|
|
entrypoint: worker-certificates
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2021-02-11 22:54:43 +13:00
|
|
|
container_name: appwrite-worker-certificates
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
2023-12-30 10:09:59 +13:00
|
|
|
volumes:
|
2021-02-11 22:54:43 +13:00
|
|
|
- appwrite-config:/storage/config:rw
|
|
|
|
- appwrite-certificates:/storage/certificates:rw
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_WORKER_PER_CORE
|
2022-03-03 04:41:35 +13:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
2022-05-12 01:11:58 +12:00
|
|
|
- _APP_DOMAIN
|
2022-03-16 23:11:04 +13:00
|
|
|
- _APP_DOMAIN_TARGET
|
2023-02-10 03:27:11 +13:00
|
|
|
- _APP_DOMAIN_FUNCTIONS
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_SYSTEM_SECURITY_EMAIL_ADDRESS
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _APP_REDIS_USER
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_REDIS_PASS
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
|
|
|
- _APP_DB_PASS
|
2022-03-03 03:47:26 +13:00
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
2021-02-11 22:54:43 +13:00
|
|
|
|
|
|
|
appwrite-worker-functions:
|
2021-05-18 20:04:51 +12:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2021-02-11 22:54:43 +13:00
|
|
|
entrypoint: worker-functions
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2021-02-11 22:54:43 +13:00
|
|
|
container_name: appwrite-worker-functions
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
2022-11-13 01:51:54 +13:00
|
|
|
- openruntimes-executor
|
2021-02-11 22:54:43 +13:00
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_WORKER_PER_CORE
|
2022-03-03 04:41:35 +13:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
|
|
|
- _APP_DB_PASS
|
|
|
|
- _APP_FUNCTIONS_TIMEOUT
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_FUNCTIONS_BUILD_TIMEOUT
|
|
|
|
- _APP_FUNCTIONS_CPUS
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_FUNCTIONS_MEMORY
|
2021-09-22 22:08:02 +12:00
|
|
|
- _APP_EXECUTOR_SECRET
|
2022-04-12 06:37:07 +12:00
|
|
|
- _APP_EXECUTOR_HOST
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_USAGE_STATS
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_DOCKER_HUB_USERNAME
|
|
|
|
- _APP_DOCKER_HUB_PASSWORD
|
|
|
|
- _APP_LOGGING_CONFIG
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_LOGGING_PROVIDER
|
2022-03-16 23:11:04 +13:00
|
|
|
|
2022-02-26 03:26:55 +13:00
|
|
|
appwrite-worker-mails:
|
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
|
|
|
entrypoint: worker-mails
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2022-02-26 03:26:55 +13:00
|
|
|
container_name: appwrite-worker-mails
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_WORKER_PER_CORE
|
2022-03-03 04:41:35 +13:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
2022-02-26 03:26:55 +13:00
|
|
|
- _APP_SYSTEM_EMAIL_NAME
|
|
|
|
- _APP_SYSTEM_EMAIL_ADDRESS
|
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
|
|
|
- _APP_SMTP_HOST
|
|
|
|
- _APP_SMTP_PORT
|
|
|
|
- _APP_SMTP_SECURE
|
|
|
|
- _APP_SMTP_USERNAME
|
|
|
|
- _APP_SMTP_PASSWORD
|
2022-03-03 03:47:26 +13:00
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
2022-02-26 03:26:55 +13:00
|
|
|
|
2022-06-22 06:32:51 +12:00
|
|
|
appwrite-worker-messaging:
|
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
|
|
|
entrypoint: worker-messaging
|
|
|
|
<<: *x-logging
|
|
|
|
container_name: appwrite-worker-messaging
|
2023-01-12 19:51:50 +13:00
|
|
|
restart: unless-stopped
|
2022-06-22 06:32:51 +12:00
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_WORKER_PER_CORE
|
2023-12-01 11:09:43 +13:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
2022-06-22 06:32:51 +12:00
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2023-12-01 11:09:43 +13:00
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
|
|
|
- _APP_DB_PASS
|
2022-06-22 06:32:51 +12:00
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
2023-12-01 11:09:43 +13:00
|
|
|
- _APP_SMS_FROM
|
|
|
|
- _APP_SMS_PROVIDER
|
2022-06-22 06:32:51 +12:00
|
|
|
|
2023-09-02 11:17:37 +12:00
|
|
|
appwrite-worker-migrations:
|
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
|
|
|
entrypoint: worker-migrations
|
|
|
|
<<: *x-logging
|
|
|
|
container_name: appwrite-worker-migrations
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
|
|
|
- _APP_WORKER_PER_CORE
|
|
|
|
- _APP_OPENSSL_KEY_V1
|
|
|
|
- _APP_DOMAIN
|
|
|
|
- _APP_DOMAIN_TARGET
|
|
|
|
- _APP_SYSTEM_SECURITY_EMAIL_ADDRESS
|
|
|
|
- _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
|
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
|
|
|
- _APP_MIGRATIONS_FIREBASE_CLIENT_ID
|
|
|
|
- _APP_MIGRATIONS_FIREBASE_CLIENT_SECRET
|
|
|
|
|
2021-02-11 22:54:43 +13:00
|
|
|
appwrite-maintenance:
|
2021-05-18 20:04:51 +12:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2021-02-11 22:54:43 +13:00
|
|
|
entrypoint: maintenance
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2021-02-11 22:54:43 +13:00
|
|
|
container_name: appwrite-maintenance
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_WORKER_PER_CORE
|
2022-04-10 21:38:22 +12:00
|
|
|
- _APP_DOMAIN
|
|
|
|
- _APP_DOMAIN_TARGET
|
2023-02-10 03:27:11 +13:00
|
|
|
- _APP_DOMAIN_FUNCTIONS
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2022-05-17 00:46:37 +12:00
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
|
|
|
- _APP_DB_PASS
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_MAINTENANCE_INTERVAL
|
|
|
|
- _APP_MAINTENANCE_RETENTION_EXECUTION
|
2022-08-18 01:02:01 +12:00
|
|
|
- _APP_MAINTENANCE_RETENTION_CACHE
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_MAINTENANCE_RETENTION_ABUSE
|
|
|
|
- _APP_MAINTENANCE_RETENTION_AUDIT
|
2022-10-28 22:54:56 +13:00
|
|
|
- _APP_MAINTENANCE_RETENTION_USAGE_HOURLY
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_MAINTENANCE_RETENTION_SCHEDULES
|
2021-02-11 22:54:43 +13:00
|
|
|
|
2023-10-26 01:06:54 +13:00
|
|
|
appwrite-worker-usage:
|
2023-08-21 00:29:43 +12:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2024-03-09 05:22:07 +13:00
|
|
|
entrypoint: worker-usage
|
2023-10-26 01:06:54 +13:00
|
|
|
container_name: appwrite-worker-usage
|
2023-08-21 00:29:43 +12:00
|
|
|
<<: *x-logging
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
2024-03-09 05:20:10 +13:00
|
|
|
- redis
|
|
|
|
- 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-worker-usage-dump:
|
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
|
|
|
entrypoint: worker-usage-dump
|
|
|
|
<<: *x-logging
|
|
|
|
container_name: appwrite-worker-usage-dump
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
2023-08-21 00:29:43 +12:00
|
|
|
- mariadb
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_WORKER_PER_CORE
|
2023-08-21 00:29:43 +12:00
|
|
|
- _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
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_USAGE_STATS
|
2023-08-21 00:29:43 +12:00
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
2024-03-09 05:20:10 +13:00
|
|
|
- _APP_USAGE_AGGREGATION_INTERVAL
|
2023-08-21 00:29:43 +12:00
|
|
|
|
2024-01-11 16:14:38 +13:00
|
|
|
appwrite-scheduler-functions:
|
2021-05-18 20:04:51 +12:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2024-01-11 16:14:38 +13:00
|
|
|
entrypoint: schedule-functions
|
|
|
|
container_name: appwrite-scheduler-functions
|
|
|
|
<<: *x-logging
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- 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-scheduler-messages:
|
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
|
|
|
entrypoint: schedule-messages
|
|
|
|
container_name: appwrite-scheduler-messages
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2021-02-11 22:54:43 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
2023-09-05 22:28:08 +12:00
|
|
|
- mariadb
|
2021-02-11 22:54:43 +13:00
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_WORKER_PER_CORE
|
2023-09-09 07:08:18 +12:00
|
|
|
- _APP_OPENSSL_KEY_V1
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
2021-02-01 03:56:06 +13:00
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2023-09-05 22:28:08 +12:00
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
2023-08-29 02:23:16 +12:00
|
|
|
- _APP_DB_PASS
|
2021-02-11 22:54:43 +13:00
|
|
|
|
2023-09-05 22:28:08 +12:00
|
|
|
appwrite-assistant:
|
2024-02-28 23:25:17 +13:00
|
|
|
image: appwrite/assistant:0.4.0
|
2023-09-05 22:28:08 +12:00
|
|
|
container_name: appwrite-assistant
|
|
|
|
<<: *x-logging
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
environment:
|
|
|
|
- _APP_ASSISTANT_OPENAI_API_KEY
|
|
|
|
|
2022-11-10 22:40:15 +13:00
|
|
|
openruntimes-executor:
|
|
|
|
container_name: openruntimes-executor
|
2023-09-06 11:43:59 +12:00
|
|
|
hostname: appwrite-executor
|
2022-11-10 22:40:15 +13:00
|
|
|
<<: *x-logging
|
2023-10-05 06:13:39 +13:00
|
|
|
restart: unless-stopped
|
2022-11-10 22:40:15 +13:00
|
|
|
stop_signal: SIGINT
|
2024-03-05 23:47:07 +13:00
|
|
|
image: openruntimes/executor:0.4.9
|
2022-11-10 22:40:15 +13:00
|
|
|
networks:
|
|
|
|
- appwrite
|
2022-11-18 08:38:43 +13:00
|
|
|
- runtimes
|
2022-11-10 22:40:15 +13:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2022-11-18 08:38:43 +13:00
|
|
|
- appwrite-builds:/storage/builds:rw
|
|
|
|
- appwrite-functions:/storage/functions:rw
|
2023-09-05 22:28:08 +12:00
|
|
|
# Host mount nessessary 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)
|
2022-11-10 22:40:15 +13:00
|
|
|
- /tmp:/tmp:rw
|
|
|
|
environment:
|
2022-11-11 01:04:49 +13:00
|
|
|
- OPR_EXECUTOR_INACTIVE_TRESHOLD=$_APP_FUNCTIONS_INACTIVE_THRESHOLD
|
2022-11-22 03:23:43 +13:00
|
|
|
- OPR_EXECUTOR_MAINTENANCE_INTERVAL=$_APP_FUNCTIONS_MAINTENANCE_INTERVAL
|
2022-11-11 01:04:49 +13:00
|
|
|
- OPR_EXECUTOR_NETWORK=$_APP_FUNCTIONS_RUNTIMES_NETWORK
|
|
|
|
- OPR_EXECUTOR_DOCKER_HUB_USERNAME=$_APP_DOCKER_HUB_USERNAME
|
|
|
|
- OPR_EXECUTOR_DOCKER_HUB_PASSWORD=$_APP_DOCKER_HUB_PASSWORD
|
2022-11-10 22:40:15 +13:00
|
|
|
- OPR_EXECUTOR_ENV=$_APP_ENV
|
|
|
|
- OPR_EXECUTOR_RUNTIMES=$_APP_FUNCTIONS_RUNTIMES
|
|
|
|
- OPR_EXECUTOR_SECRET=$_APP_EXECUTOR_SECRET
|
|
|
|
- OPR_EXECUTOR_LOGGING_PROVIDER=$_APP_LOGGING_PROVIDER
|
|
|
|
- OPR_EXECUTOR_LOGGING_CONFIG=$_APP_LOGGING_CONFIG
|
2023-08-29 02:23:16 +12:00
|
|
|
- OPR_EXECUTOR_STORAGE_DEVICE=$_APP_STORAGE_DEVICE
|
|
|
|
- OPR_EXECUTOR_STORAGE_S3_ACCESS_KEY=$_APP_STORAGE_S3_ACCESS_KEY
|
|
|
|
- OPR_EXECUTOR_STORAGE_S3_SECRET=$_APP_STORAGE_S3_SECRET
|
|
|
|
- OPR_EXECUTOR_STORAGE_S3_REGION=$_APP_STORAGE_S3_REGION
|
|
|
|
- OPR_EXECUTOR_STORAGE_S3_BUCKET=$_APP_STORAGE_S3_BUCKET
|
|
|
|
- OPR_EXECUTOR_STORAGE_DO_SPACES_ACCESS_KEY=$_APP_STORAGE_DO_SPACES_ACCESS_KEY
|
|
|
|
- OPR_EXECUTOR_STORAGE_DO_SPACES_SECRET=$_APP_STORAGE_DO_SPACES_SECRET
|
|
|
|
- OPR_EXECUTOR_STORAGE_DO_SPACES_REGION=$_APP_STORAGE_DO_SPACES_REGION
|
|
|
|
- OPR_EXECUTOR_STORAGE_DO_SPACES_BUCKET=$_APP_STORAGE_DO_SPACES_BUCKET
|
|
|
|
- OPR_EXECUTOR_STORAGE_BACKBLAZE_ACCESS_KEY=$_APP_STORAGE_BACKBLAZE_ACCESS_KEY
|
|
|
|
- OPR_EXECUTOR_STORAGE_BACKBLAZE_SECRET=$_APP_STORAGE_BACKBLAZE_SECRET
|
|
|
|
- OPR_EXECUTOR_STORAGE_BACKBLAZE_REGION=$_APP_STORAGE_BACKBLAZE_REGION
|
|
|
|
- OPR_EXECUTOR_STORAGE_BACKBLAZE_BUCKET=$_APP_STORAGE_BACKBLAZE_BUCKET
|
|
|
|
- OPR_EXECUTOR_STORAGE_LINODE_ACCESS_KEY=$_APP_STORAGE_LINODE_ACCESS_KEY
|
|
|
|
- OPR_EXECUTOR_STORAGE_LINODE_SECRET=$_APP_STORAGE_LINODE_SECRET
|
|
|
|
- OPR_EXECUTOR_STORAGE_LINODE_REGION=$_APP_STORAGE_LINODE_REGION
|
|
|
|
- OPR_EXECUTOR_STORAGE_LINODE_BUCKET=$_APP_STORAGE_LINODE_BUCKET
|
|
|
|
- OPR_EXECUTOR_STORAGE_WASABI_ACCESS_KEY=$_APP_STORAGE_WASABI_ACCESS_KEY
|
|
|
|
- OPR_EXECUTOR_STORAGE_WASABI_SECRET=$_APP_STORAGE_WASABI_SECRET
|
|
|
|
- OPR_EXECUTOR_STORAGE_WASABI_REGION=$_APP_STORAGE_WASABI_REGION
|
|
|
|
- OPR_EXECUTOR_STORAGE_WASABI_BUCKET=$_APP_STORAGE_WASABI_BUCKET
|
2022-11-10 22:40:15 +13:00
|
|
|
|
2021-02-11 22:54:43 +13:00
|
|
|
mariadb:
|
2024-02-01 02:36:35 +13:00
|
|
|
image: mariadb:10.11 # fix issues when upgrading using: mysql_upgrade -u root -p
|
2021-02-11 22:54:43 +13:00
|
|
|
container_name: appwrite-mariadb
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2021-02-11 22:54:43 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
volumes:
|
|
|
|
- appwrite-mariadb:/var/lib/mysql:rw
|
|
|
|
environment:
|
2021-05-18 18:33:48 +12:00
|
|
|
- MYSQL_ROOT_PASSWORD=${_APP_DB_ROOT_PASS}
|
2021-02-11 22:54:43 +13:00
|
|
|
- MYSQL_DATABASE=${_APP_DB_SCHEMA}
|
|
|
|
- MYSQL_USER=${_APP_DB_USER}
|
|
|
|
- MYSQL_PASSWORD=${_APP_DB_PASS}
|
2023-08-31 06:45:22 +12:00
|
|
|
command: 'mysqld --innodb-flush-method=fsync'
|
2021-02-11 22:54:43 +13:00
|
|
|
|
|
|
|
redis:
|
2024-02-01 02:36:35 +13:00
|
|
|
image: redis:7.2.4-alpine
|
2021-02-11 22:54:43 +13:00
|
|
|
container_name: appwrite-redis
|
2022-03-29 22:48:49 +13:00
|
|
|
<<: *x-logging
|
2021-02-11 22:54:43 +13:00
|
|
|
restart: unless-stopped
|
2022-06-22 22:44:24 +12:00
|
|
|
command: >
|
|
|
|
redis-server
|
|
|
|
--maxmemory 512mb
|
|
|
|
--maxmemory-policy allkeys-lru
|
|
|
|
--maxmemory-samples 5
|
2021-02-11 22:54:43 +13:00
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
volumes:
|
|
|
|
- appwrite-redis:/data:rw
|
|
|
|
|
2022-03-16 23:11:04 +13:00
|
|
|
# clamav:
|
|
|
|
# image: appwrite/clamav:1.2.0
|
|
|
|
# container_name: appwrite-clamav
|
|
|
|
# restart: unless-stopped
|
|
|
|
# networks:
|
|
|
|
# - appwrite
|
|
|
|
# volumes:
|
|
|
|
# - appwrite-uploads:/storage/uploads
|
2021-02-11 22:54:43 +13:00
|
|
|
|
|
|
|
networks:
|
|
|
|
gateway:
|
2022-11-10 22:37:49 +13:00
|
|
|
name: gateway
|
2021-02-11 22:54:43 +13:00
|
|
|
appwrite:
|
2022-11-10 22:37:49 +13:00
|
|
|
name: appwrite
|
2022-11-18 08:38:43 +13:00
|
|
|
runtimes:
|
|
|
|
name: runtimes
|
2021-02-11 22:54:43 +13:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
appwrite-mariadb:
|
|
|
|
appwrite-redis:
|
|
|
|
appwrite-cache:
|
|
|
|
appwrite-uploads:
|
|
|
|
appwrite-certificates:
|
2022-11-18 08:38:43 +13:00
|
|
|
appwrite-functions:
|
|
|
|
appwrite-builds:
|
2023-08-29 02:23:16 +12:00
|
|
|
appwrite-config:
|