1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00
appwrite/docker-compose.yml

100 lines
2.2 KiB
YAML
Raw Normal View History

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-10-02 10:12:48 +13:00
restart: unless-stopped
volumes:
- 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:
- mariadb
- redis
- smtp
- clamav
- influxdb
- telegraf
environment:
- _APP_ENV=development
- _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-11-28 09:23:37 +13:00
image: appwrite/mariadb:1.0.1 # fix issues when upgrading using: mysql_upgrade -u root -p
2019-10-02 10:12:48 +13:00
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=rootsecretpassword
- MYSQL_DATABASE=appwrite
- MYSQL_USER=user
- MYSQL_PASSWORD=password
volumes:
- appwrite-db:/var/lib/mysql:rw
2019-10-02 10:12:48 +13:00
ports:
- 3306:3306/tcp
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
environment:
- MAILNAME=appwrite
- RELAY_NETWORKS=:192.168.0.0/24:10.0.0.0/16
ports:
- "25:25"
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
volumes:
- appwrite-uploads:/storage/uploads
2019-12-01 06:28:03 +13:00
ports:
- "3310:3310"
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-01 06:28:03 +13:00
ports:
- "6379:6379"
2019-10-01 11:43:07 +13:00
2019-10-02 10:12:48 +13:00
influxdb:
image: influxdb:1.6
volumes:
- appwrite-influxdb:/var/lib/influxdb:rw
2019-10-02 10:12:48 +13:00
ports:
- "8086:8086"
telegraf:
image: appwrite/telegraf:1.0.0
ports:
- "8125:8125/udp"
volumes:
appwrite-db:
appwrite-cache:
appwrite-uploads:
2019-11-29 20:33:42 +13:00
appwrite-influxdb: