2019-05-09 18:54:39 +12:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
appwrite:
|
|
|
|
build: .
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- .:/usr/share/nginx/html
|
|
|
|
- ./docker/nginx.conf:/etc/nginx/nginx.conf:rw
|
|
|
|
- ./storage:/storage:rw
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
2019-09-03 23:05:33 +12:00
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- redis
|
|
|
|
- smtp
|
|
|
|
- clamav
|
|
|
|
- influxdb
|
|
|
|
- telegraf
|
2019-05-09 18:54:39 +12:00
|
|
|
environment:
|
2019-08-12 09:28:36 +12:00
|
|
|
- _APP_ENV=development
|
2019-09-04 00:08:32 +12:00
|
|
|
- _APP_OPENSSL_KEY_V1=your-secret-key
|
2019-05-09 18:54:39 +12:00
|
|
|
- _APP_REDIS_HOST=redis
|
|
|
|
- _APP_REDIS_PORT=6379
|
|
|
|
- _APP_DB_HOST=mariadb
|
|
|
|
- _APP_DB_PORT=3306
|
2019-05-24 17:56:23 +12:00
|
|
|
- _APP_DB_SCHEMA=appwrite
|
2019-05-09 18:54:39 +12:00
|
|
|
- _APP_DB_USER=root
|
|
|
|
- _APP_DB_PASS=password
|
2019-08-07 08:22:20 +12:00
|
|
|
- _APP_INFLUXDB_HOST=influxdb
|
|
|
|
- _APP_INFLUXDB_PORT=8086
|
2019-08-07 20:57:12 +12:00
|
|
|
- _APP_STATSD_HOST=telegraf
|
|
|
|
- _APP_STATSD_PORT=8125
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
mariadb:
|
2019-08-01 01:04:08 +12:00
|
|
|
image: appwrite/mariadb:1.0.0 # fix issues when upgrading using: mysql_upgrade -u root -p
|
2019-05-09 18:54:39 +12:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
2019-08-09 09:49:46 +12:00
|
|
|
- MYSQL_ROOT_PASSWORD=password
|
2019-05-09 18:54:39 +12:00
|
|
|
volumes:
|
|
|
|
- ./storage/db:/var/lib/mysql:rw
|
|
|
|
ports:
|
|
|
|
- 3306:3306/tcp
|
|
|
|
|
2019-08-09 09:49:46 +12:00
|
|
|
smtp:
|
|
|
|
image: appwrite/smtp:1.0.0
|
|
|
|
environment:
|
|
|
|
- MAILNAME=appwrite
|
|
|
|
- RELAY_NETWORKS=:192.168.0.0/24:10.0.0.0/16
|
|
|
|
ports:
|
|
|
|
- "25:25"
|
2019-05-09 18:54:39 +12:00
|
|
|
|
|
|
|
clamav:
|
2019-08-07 16:36:51 +12:00
|
|
|
image: appwrite/clamav:1.0.4
|
2019-08-07 19:02:12 +12:00
|
|
|
restart: unless-stopped
|
2019-08-15 01:50:40 +12:00
|
|
|
volumes:
|
|
|
|
- ./storage:/storage:rw
|
2019-08-09 09:49:46 +12:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:5.0
|
|
|
|
restart: unless-stopped
|
2019-08-07 19:02:12 +12:00
|
|
|
|
|
|
|
influxdb:
|
|
|
|
image: influxdb:1.6
|
|
|
|
volumes:
|
2019-08-09 09:49:46 +12:00
|
|
|
- ./storage/influxdb:/var/lib/influxdb
|
2019-08-07 19:02:12 +12:00
|
|
|
ports:
|
2019-08-09 09:49:46 +12:00
|
|
|
- "8086:8086"
|
|
|
|
|
2019-08-07 19:02:12 +12:00
|
|
|
telegraf:
|
|
|
|
image: appwrite/telegraf:1.0.0
|
|
|
|
ports:
|
2019-08-09 09:49:46 +12:00
|
|
|
- "8125:8125/udp"
|