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:
|
2021-08-18 23:24:25 +12:00
|
|
|
image: traefik:2.5
|
2021-02-11 22:54:43 +13:00
|
|
|
container_name: appwrite-traefik
|
|
|
|
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
|
|
|
|
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
|
|
|
|
- appwrite-functions:/storage/functions:rw
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- redis
|
2021-04-04 14:10:56 +12:00
|
|
|
# - clamav
|
2021-02-11 22:54:43 +13:00
|
|
|
- influxdb
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
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
|
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
|
|
|
|
- _APP_OPTIONS_FORCE_HTTPS
|
|
|
|
- _APP_OPENSSL_KEY_V1
|
|
|
|
- _APP_DOMAIN
|
|
|
|
- _APP_DOMAIN_TARGET
|
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
2021-02-01 03:56:06 +13:00
|
|
|
- _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_SMTP_HOST
|
|
|
|
- _APP_SMTP_PORT
|
|
|
|
- _APP_SMTP_SECURE
|
|
|
|
- _APP_SMTP_USERNAME
|
|
|
|
- _APP_SMTP_PASSWORD
|
|
|
|
- _APP_USAGE_STATS
|
|
|
|
- _APP_INFLUXDB_HOST
|
|
|
|
- _APP_INFLUXDB_PORT
|
2021-02-11 22:59:11 +13:00
|
|
|
- _APP_STORAGE_LIMIT
|
|
|
|
- _APP_STORAGE_ANTIVIRUS
|
|
|
|
- _APP_STORAGE_ANTIVIRUS_HOST
|
|
|
|
- _APP_STORAGE_ANTIVIRUS_PORT
|
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_CONTAINERS
|
|
|
|
- _APP_FUNCTIONS_CPUS
|
|
|
|
- _APP_FUNCTIONS_MEMORY
|
|
|
|
- _APP_FUNCTIONS_MEMORY_SWAP
|
2021-09-22 22:08:02 +12:00
|
|
|
- _APP_EXECUTOR_SECRET
|
2021-04-30 03:08:59 +12:00
|
|
|
- _APP_FUNCTIONS_RUNTIMES
|
2021-11-23 05:12:18 +13:00
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
2021-08-16 09:09:40 +12:00
|
|
|
- _APP_STATSD_HOST
|
|
|
|
- _APP_STATSD_PORT
|
|
|
|
- _APP_MAINTENANCE_INTERVAL
|
|
|
|
- _APP_MAINTENANCE_RETENTION_EXECUTION
|
|
|
|
- _APP_MAINTENANCE_RETENTION_ABUSE
|
|
|
|
- _APP_MAINTENANCE_RETENTION_AUDIT
|
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
|
|
|
|
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
|
|
|
|
- traefik.http.routers.appwrite_realtime_wss.tls.certresolver=dns
|
|
|
|
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
|
|
|
|
- _APP_OPTIONS_ABUSE
|
|
|
|
- _APP_OPENSSL_KEY_V1
|
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
|
|
|
- _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
|
2021-03-04 22:28:24 +13:00
|
|
|
|
2022-01-21 23:42:12 +13:00
|
|
|
appwrite-executor:
|
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
|
|
|
entrypoint: executor
|
|
|
|
container_name: appwrite-executor
|
|
|
|
stop_signal: SIGINT
|
|
|
|
networks:
|
|
|
|
appwrite:
|
|
|
|
runtimes:
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- appwrite-functions:/storage/functions:rw
|
|
|
|
- /tmp:/tmp:rw
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
|
|
|
- appwrite
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
|
|
|
- _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
|
|
|
|
- _APP_FUNCTIONS_TIMEOUT
|
|
|
|
- _APP_FUNCTIONS_BUILD_TIMEOUT
|
|
|
|
- _APP_FUNCTIONS_CONTAINERS
|
|
|
|
- _APP_FUNCTIONS_RUNTIMES
|
|
|
|
- _APP_FUNCTIONS_CPUS
|
|
|
|
- _APP_FUNCTIONS_MEMORY
|
|
|
|
- _APP_FUNCTIONS_MEMORY_SWAP
|
|
|
|
- _APP_EXECUTOR_SECRET
|
|
|
|
- _APP_USAGE_STATS
|
|
|
|
- _APP_STATSD_HOST
|
|
|
|
- _APP_STATSD_PORT
|
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
2022-01-24 06:28:18 +13:00
|
|
|
- DOCKERHUB_PULL_USERNAME
|
|
|
|
- DOCKERHUB_PULL_PASSWORD
|
2022-01-21 23:42:12 +13:00
|
|
|
|
2021-11-26 08:20:28 +13:00
|
|
|
appwrite-worker-database:
|
2021-05-18 20:04:51 +12:00
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
2021-11-26 08:20:28 +13:00
|
|
|
entrypoint: worker-database
|
|
|
|
container_name: appwrite-worker-database
|
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
|
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
2021-02-01 03:56:06 +13:00
|
|
|
- _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
|
2021-02-11 22:54:43 +13:00
|
|
|
|
|
|
|
appwrite-worker-audits:
|
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-audits
|
|
|
|
container_name: appwrite-worker-audits
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
2021-02-01 03:56:06 +13:00
|
|
|
- _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
|
|
|
|
|
|
|
|
appwrite-worker-webhooks:
|
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-webhooks
|
|
|
|
container_name: appwrite-worker-webhooks
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
|
|
|
- _APP_SYSTEM_SECURITY_EMAIL_ADDRESS
|
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
2021-02-01 03:56:06 +13:00
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2021-02-11 22:54:43 +13:00
|
|
|
|
|
|
|
appwrite-worker-deletes:
|
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-deletes
|
|
|
|
container_name: appwrite-worker-deletes
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
|
|
|
volumes:
|
|
|
|
- appwrite-uploads:/storage/uploads:rw
|
|
|
|
- appwrite-cache:/storage/cache:rw
|
|
|
|
- appwrite-certificates:/storage/certificates:rw
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
2021-02-01 03:56:06 +13:00
|
|
|
- _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
|
|
|
|
|
|
|
|
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
|
|
|
|
container_name: appwrite-worker-certificates
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
|
|
|
volumes:
|
|
|
|
- appwrite-config:/storage/config:rw
|
|
|
|
- appwrite-certificates:/storage/certificates:rw
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
|
|
|
- _APP_SYSTEM_SECURITY_EMAIL_ADDRESS
|
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
2021-02-01 03:56:06 +13:00
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_DOMAIN_TARGET
|
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
|
|
|
- _APP_DB_PASS
|
|
|
|
|
|
|
|
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
|
|
|
|
container_name: appwrite-worker-functions
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
2022-01-24 06:28:18 +13:00
|
|
|
- appwrite-executor
|
2021-02-11 22:54:43 +13:00
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
2021-02-01 03:56:06 +13:00
|
|
|
- _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
|
2021-09-22 22:08:02 +12:00
|
|
|
- _APP_EXECUTOR_SECRET
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_USAGE_STATS
|
|
|
|
|
2022-01-24 23:32:40 +13:00
|
|
|
appwrite-executor:
|
|
|
|
container_name: appwrite-executor
|
|
|
|
entrypoint: executor
|
|
|
|
stop_signal: SIGINT
|
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
|
|
|
networks:
|
|
|
|
appwrite:
|
|
|
|
runtimes:
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- appwrite-functions:/storage/functions:rw
|
|
|
|
- /tmp:/tmp:rw
|
|
|
|
- ./app:/usr/src/code/app
|
|
|
|
- ./src:/usr/src/code/src
|
|
|
|
- ./dev:/usr/local/dev
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mariadb
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
|
|
|
- _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
|
|
|
|
- _APP_FUNCTIONS_TIMEOUT
|
|
|
|
- _APP_FUNCTIONS_BUILD_TIMEOUT
|
|
|
|
- _APP_FUNCTIONS_CONTAINERS
|
|
|
|
- _APP_FUNCTIONS_RUNTIMES
|
|
|
|
- _APP_FUNCTIONS_CPUS
|
|
|
|
- _APP_FUNCTIONS_MEMORY
|
|
|
|
- _APP_FUNCTIONS_MEMORY_SWAP
|
|
|
|
- _APP_EXECUTOR_SECRET
|
|
|
|
- _APP_USAGE_STATS
|
|
|
|
- _APP_STATSD_HOST
|
|
|
|
- _APP_STATSD_PORT
|
|
|
|
- _APP_LOGGING_PROVIDER
|
|
|
|
- _APP_LOGGING_CONFIG
|
|
|
|
- DOCKERHUB_PULL_USERNAME
|
|
|
|
- DOCKERHUB_PULL_PASSWORD
|
|
|
|
|
2021-02-11 22:54:43 +13:00
|
|
|
appwrite-worker-mails:
|
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-mails
|
|
|
|
container_name: appwrite-worker-mails
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
|
|
|
- _APP_SYSTEM_EMAIL_NAME
|
|
|
|
- _APP_SYSTEM_EMAIL_ADDRESS
|
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
2021-02-01 03:56:06 +13:00
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_SMTP_HOST
|
|
|
|
- _APP_SMTP_PORT
|
|
|
|
- _APP_SMTP_SECURE
|
|
|
|
- _APP_SMTP_USERNAME
|
|
|
|
- _APP_SMTP_PASSWORD
|
2021-12-22 04:29:09 +13:00
|
|
|
|
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
|
|
|
|
container_name: appwrite-maintenance
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
2021-02-01 03:56:06 +13:00
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2021-02-11 22:54:43 +13:00
|
|
|
- _APP_MAINTENANCE_INTERVAL
|
|
|
|
- _APP_MAINTENANCE_RETENTION_EXECUTION
|
|
|
|
- _APP_MAINTENANCE_RETENTION_ABUSE
|
|
|
|
- _APP_MAINTENANCE_RETENTION_AUDIT
|
|
|
|
|
2021-08-13 20:42:56 +12:00
|
|
|
appwrite-usage:
|
|
|
|
image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>
|
|
|
|
entrypoint: usage
|
|
|
|
container_name: appwrite-usage
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- influxdb
|
|
|
|
- mariadb
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
|
|
|
- _APP_DB_HOST
|
|
|
|
- _APP_DB_PORT
|
|
|
|
- _APP_DB_SCHEMA
|
|
|
|
- _APP_DB_USER
|
|
|
|
- _APP_DB_PASS
|
|
|
|
- _APP_INFLUXDB_HOST
|
|
|
|
- _APP_INFLUXDB_PORT
|
2021-08-15 20:40:55 +12:00
|
|
|
- _APP_USAGE_AGGREGATION_INTERVAL
|
2021-02-11 22:54:43 +13:00
|
|
|
|
|
|
|
appwrite-schedule:
|
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: schedule
|
|
|
|
container_name: appwrite-schedule
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
environment:
|
|
|
|
- _APP_ENV
|
|
|
|
- _APP_REDIS_HOST
|
|
|
|
- _APP_REDIS_PORT
|
2021-02-01 03:56:06 +13:00
|
|
|
- _APP_REDIS_USER
|
|
|
|
- _APP_REDIS_PASS
|
2021-02-11 22:54:43 +13:00
|
|
|
|
|
|
|
mariadb:
|
2021-12-28 01:49:33 +13:00
|
|
|
image: mariadb:10.7 # fix issues when upgrading using: mysql_upgrade -u root -p
|
2021-02-11 22:54:43 +13:00
|
|
|
container_name: appwrite-mariadb
|
|
|
|
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}
|
2021-08-25 03:56:12 +12:00
|
|
|
command: 'mysqld --innodb-flush-method=fsync'
|
2021-02-11 22:54:43 +13:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:6.0-alpine3.12
|
|
|
|
container_name: appwrite-redis
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
volumes:
|
|
|
|
- appwrite-redis:/data:rw
|
|
|
|
|
2021-04-04 14:10:56 +12: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
|
|
|
|
|
|
|
influxdb:
|
2021-05-19 23:15:58 +12:00
|
|
|
image: appwrite/influxdb:1.0.0
|
2021-02-11 22:54:43 +13:00
|
|
|
container_name: appwrite-influxdb
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
volumes:
|
|
|
|
- appwrite-influxdb:/var/lib/influxdb:rw
|
|
|
|
|
|
|
|
telegraf:
|
2021-06-04 00:57:17 +12:00
|
|
|
image: appwrite/telegraf:1.2.0
|
2021-02-11 22:54:43 +13:00
|
|
|
container_name: appwrite-telegraf
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
2021-05-28 01:13:40 +12:00
|
|
|
environment:
|
|
|
|
- _APP_INFLUXDB_HOST
|
|
|
|
- _APP_INFLUXDB_PORT
|
2021-02-11 22:54:43 +13:00
|
|
|
|
|
|
|
networks:
|
|
|
|
gateway:
|
|
|
|
appwrite:
|
2022-01-24 23:32:40 +13:00
|
|
|
runtimes:
|
2021-02-11 22:54:43 +13:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
appwrite-mariadb:
|
|
|
|
appwrite-redis:
|
|
|
|
appwrite-cache:
|
|
|
|
appwrite-uploads:
|
|
|
|
appwrite-certificates:
|
|
|
|
appwrite-functions:
|
|
|
|
appwrite-influxdb:
|
|
|
|
appwrite-config:
|
2022-01-24 23:32:40 +13:00
|
|
|
appwrite-executor:
|