2019-10-02 10:12:48 +13:00
|
|
|
version: '3'
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
services:
|
2019-10-02 10:12:48 +13:00
|
|
|
appwrite:
|
2019-11-30 06:34:55 +13:00
|
|
|
container_name: appwrite
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
- TESTING=true
|
2019-12-07 07:55:44 +13:00
|
|
|
- VERSION=dev
|
2019-10-02 10:12:48 +13:00
|
|
|
restart: unless-stopped
|
2019-12-05 18:30:23 +13:00
|
|
|
networks:
|
|
|
|
- appwrite
|
2019-10-02 10:12:48 +13:00
|
|
|
volumes:
|
2019-11-14 17:37:24 +13:00
|
|
|
- appwrite-uploads:/storage/uploads:rw
|
|
|
|
- appwrite-cache:/storage/cache:rw
|
2019-11-30 06:34:55 +13:00
|
|
|
- ./phpunit.xml:/usr/share/nginx/html/phpunit.xml
|
|
|
|
- ./tests:/usr/share/nginx/html/tests
|
2019-10-02 10:12:48 +13:00
|
|
|
- ./app:/usr/share/nginx/html/app
|
2019-10-09 21:24:47 +13:00
|
|
|
- ./docs:/usr/share/nginx/html/docs
|
2019-10-02 10:12:48 +13:00
|
|
|
- ./public:/usr/share/nginx/html/public
|
|
|
|
- ./src:/usr/share/nginx/html/src
|
2019-11-29 20:33:42 +13:00
|
|
|
- ./docker/nginx.conf:/etc/nginx/nginx.conf
|
2019-10-02 10:12:48 +13:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
depends_on:
|
2019-12-05 18:31:09 +13:00
|
|
|
- mariadb
|
|
|
|
- redis
|
|
|
|
- smtp
|
|
|
|
- clamav
|
|
|
|
- influxdb
|
|
|
|
- telegraf
|
2019-10-02 10:12:48 +13:00
|
|
|
environment:
|
|
|
|
- _APP_ENV=development
|
2019-11-30 07:41:40 +13:00
|
|
|
- _APP_OPTIONS_ABUSE=disabled
|
2019-10-02 10:12:48 +13:00
|
|
|
- _APP_OPENSSL_KEY_V1=your-secret-key
|
|
|
|
- _APP_REDIS_HOST=redis
|
|
|
|
- _APP_REDIS_PORT=6379
|
|
|
|
- _APP_DB_HOST=mariadb
|
|
|
|
- _APP_DB_PORT=3306
|
|
|
|
- _APP_DB_SCHEMA=appwrite
|
|
|
|
- _APP_DB_USER=user
|
|
|
|
- _APP_DB_PASS=password
|
|
|
|
- _APP_INFLUXDB_HOST=influxdb
|
|
|
|
- _APP_INFLUXDB_PORT=8086
|
|
|
|
- _APP_STATSD_HOST=telegraf
|
|
|
|
- _APP_STATSD_PORT=8125
|
2019-05-09 18:54:39 +12:00
|
|
|
|
2019-10-02 10:12:48 +13:00
|
|
|
mariadb:
|
2019-12-29 22:47:55 +13:00
|
|
|
image: appwrite/mariadb:1.0.2 # fix issues when upgrading using: mysql_upgrade -u root -p
|
2019-10-02 10:12:48 +13:00
|
|
|
restart: unless-stopped
|
2019-12-05 18:30:23 +13:00
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
volumes:
|
|
|
|
- appwrite-db:/var/lib/mysql:rw
|
2019-12-29 22:47:55 +13:00
|
|
|
ports:
|
|
|
|
- "3306:3306"
|
2019-10-02 10:12:48 +13:00
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=rootsecretpassword
|
|
|
|
- MYSQL_DATABASE=appwrite
|
|
|
|
- MYSQL_USER=user
|
|
|
|
- MYSQL_PASSWORD=password
|
2019-11-14 17:37:24 +13:00
|
|
|
command: 'mysqld --innodb-flush-method=fsync'
|
2019-05-09 18:54:39 +12:00
|
|
|
|
2019-10-02 10:12:48 +13:00
|
|
|
smtp:
|
|
|
|
image: appwrite/smtp:1.0.0
|
2019-12-05 18:30:23 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
2019-10-02 10:12:48 +13:00
|
|
|
environment:
|
|
|
|
- MAILNAME=appwrite
|
|
|
|
- RELAY_NETWORKS=:192.168.0.0/24:10.0.0.0/16
|
2019-08-07 19:02:12 +12:00
|
|
|
|
2019-10-02 10:12:48 +13:00
|
|
|
clamav:
|
2019-12-01 06:28:03 +13:00
|
|
|
image: appwrite/clamav:1.0.7
|
2019-10-02 10:12:48 +13:00
|
|
|
restart: unless-stopped
|
2019-12-05 18:30:23 +13:00
|
|
|
networks:
|
|
|
|
- appwrite
|
2019-10-02 10:12:48 +13:00
|
|
|
volumes:
|
2019-11-14 17:37:24 +13:00
|
|
|
- appwrite-uploads:/storage/uploads
|
2019-08-09 09:49:46 +12:00
|
|
|
|
2019-10-02 10:12:48 +13:00
|
|
|
redis:
|
|
|
|
image: redis:5.0
|
|
|
|
restart: unless-stopped
|
2019-12-05 18:30:23 +13:00
|
|
|
networks:
|
|
|
|
- appwrite
|
2019-10-01 11:43:07 +13:00
|
|
|
|
2019-10-02 10:12:48 +13:00
|
|
|
influxdb:
|
|
|
|
image: influxdb:1.6
|
2019-12-05 18:30:23 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
2019-10-02 10:12:48 +13:00
|
|
|
volumes:
|
2019-11-14 17:37:24 +13:00
|
|
|
- appwrite-influxdb:/var/lib/influxdb:rw
|
2019-10-02 10:12:48 +13:00
|
|
|
|
|
|
|
telegraf:
|
|
|
|
image: appwrite/telegraf:1.0.0
|
2019-12-05 18:30:23 +13:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- appwrite
|
|
|
|
|
2019-12-29 23:11:02 +13:00
|
|
|
# resque:
|
|
|
|
# image: registry.gitlab.com/appwrite/appwrite/resque-web:v1.0.2
|
|
|
|
# restart: unless-stopped
|
|
|
|
# networks:
|
|
|
|
# - appwrite
|
|
|
|
# ports:
|
|
|
|
# - "5678:5678"
|
|
|
|
# environment:
|
|
|
|
# - RESQUE_WEB_HOST=redis
|
|
|
|
# - RESQUE_WEB_PORT=6379
|
|
|
|
# - RESQUE_WEB_HTTP_BASIC_AUTH_USER=user
|
|
|
|
# - RESQUE_WEB_HTTP_BASIC_AUTH_PASSWORD=password
|
2019-12-29 22:47:55 +13:00
|
|
|
|
2019-12-05 18:30:23 +13:00
|
|
|
networks:
|
|
|
|
appwrite:
|
2019-11-14 17:37:24 +13:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
appwrite-db:
|
|
|
|
appwrite-cache:
|
|
|
|
appwrite-uploads:
|
2019-11-29 20:33:42 +13:00
|
|
|
appwrite-influxdb:
|