appwrite/docker-compose.yml

212 lines
5.2 KiB
YAML
Raw Normal View History

2019-10-01 21:12:48 +00:00
version: '3'
2019-05-09 06:54:39 +00:00
services:
2020-02-25 07:55:55 +00:00
traefik:
image: traefik:v2.1.4
container_name: appwrite_traefik
2020-02-25 07:55:55 +00:00
command:
2020-02-25 09:13:36 +00:00
- --log.level=DEBUG
- --api.insecure=true
2020-02-25 10:04:12 +00:00
- --providers.file.directory=/storage/config
2020-02-25 09:13:36 +00:00
- --providers.file.watch=true
- --providers.docker=true
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --accesslog=true
2020-03-01 13:42:20 +00:00
restart: unless-stopped
2020-02-25 07:55:55 +00:00
ports:
2020-02-25 09:13:36 +00:00
- 80:80
- 443:443
- 8080:8080
2020-02-25 07:55:55 +00:00
volumes:
2020-02-25 09:13:36 +00:00
- /var/run/docker.sock:/var/run/docker.sock
2020-02-25 10:04:12 +00:00
- appwrite-config:/storage/config:ro
- appwrite-certificates:/storage/certificates:ro
2020-02-25 09:13:36 +00:00
depends_on:
2020-03-19 19:00:53 +00:00
- appwrite
2020-02-25 07:55:55 +00:00
networks:
2020-02-25 09:13:36 +00:00
- gateway
- appwrite
2020-02-25 07:55:55 +00:00
2019-10-01 21:12:48 +00:00
appwrite:
2019-11-29 17:34:55 +00:00
container_name: appwrite
build:
context: .
args:
- TESTING=true
2019-12-06 18:55:44 +00:00
- VERSION=dev
2019-10-01 21:12:48 +00:00
restart: unless-stopped
2019-12-05 05:30:23 +00:00
networks:
2020-02-25 07:55:55 +00:00
- appwrite
labels:
- traefik.http.routers.appwrite.rule=PathPrefix(`/`)
- traefik.http.routers.appwrite-secure.rule=PathPrefix(`/`)
- traefik.http.routers.appwrite-secure.tls=true
2019-10-01 21:12:48 +00:00
volumes:
2020-02-25 09:13:36 +00:00
- appwrite-uploads:/storage/uploads:rw
- appwrite-cache:/storage/cache:rw
2020-02-25 10:04:12 +00:00
- appwrite-config:/storage/config:rw
2020-02-25 09:13:36 +00:00
- appwrite-certificates:/storage/certificates:rw
- ./phpunit.xml:/usr/share/nginx/html/phpunit.xml
- ./tests:/usr/share/nginx/html/tests
- ./app:/usr/share/nginx/html/app
2020-02-28 07:36:17 +00:00
# - ./vendor:/usr/share/nginx/html/vendor
2020-02-25 09:13:36 +00:00
- ./docs:/usr/share/nginx/html/docs
- ./public:/usr/share/nginx/html/public
- ./src:/usr/share/nginx/html/src
2019-10-01 21:12:48 +00:00
depends_on:
2020-02-25 09:13:36 +00:00
- mariadb
- redis
2020-04-24 17:09:09 +00:00
# - smtp
2020-02-25 09:13:36 +00:00
- clamav
- influxdb
- telegraf
- maildev
2019-10-01 21:12:48 +00:00
environment:
#- _APP_ENV=production
- _APP_ENV=development
2020-02-25 09:13:36 +00:00
- _APP_OPTIONS_ABUSE=disabled
2020-06-01 20:25:56 +00:00
- _APP_OPTIONS_FORCE_HTTPS=disabled
2020-02-25 09:13:36 +00:00
- _APP_OPENSSL_KEY_V1=your-secret-key
2020-03-01 06:33:19 +00:00
- _APP_DOMAIN=demo.appwrite.io
- _APP_DOMAIN_TARGET=demo.appwrite.io
2020-02-25 09:13:36 +00:00
- _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
- _APP_SMTP_HOST=maildev
- _APP_SMTP_PORT=25
2019-05-09 06:54:39 +00:00
2019-10-01 21:12:48 +00:00
mariadb:
2020-03-21 21:10:06 +00:00
image: appwrite/mariadb:1.0.3 # fix issues when upgrading using: mysql_upgrade -u root -p
container_name: appwrite_mariadb
2019-10-01 21:12:48 +00:00
restart: unless-stopped
2019-12-05 05:30:23 +00:00
networks:
2020-02-25 09:13:36 +00:00
- appwrite
2019-12-05 05:30:23 +00:00
volumes:
2020-02-29 06:24:46 +00:00
- appwrite-mariadb:/var/lib/mysql:rw
ports:
2020-02-25 09:13:36 +00:00
- "3306:3306"
2019-10-01 21:12:48 +00:00
environment:
2020-02-25 09:13:36 +00:00
- MYSQL_ROOT_PASSWORD=rootsecretpassword
- MYSQL_DATABASE=appwrite
- MYSQL_USER=user
- MYSQL_PASSWORD=password
command: 'mysqld --innodb-flush-method=fsync'
2019-05-09 06:54:39 +00:00
2020-04-24 17:09:09 +00:00
maildev:
image: djfarrelly/maildev
container_name: appwrite_maildev
2019-12-05 05:30:23 +00:00
restart: unless-stopped
2020-04-24 17:09:09 +00:00
ports:
- '1080:80'
2019-12-05 05:30:23 +00:00
networks:
2020-02-25 09:13:36 +00:00
- appwrite
2020-04-24 17:09:09 +00:00
# smtp:
# image: appwrite/smtp:1.0.1
# container_name: appwrite_smtp
2020-04-24 17:09:09 +00:00
# restart: unless-stopped
# networks:
# - appwrite
# environment:
# - MAILNAME=appwrite
# - RELAY_NETWORKS=:192.168.0.0/24:10.0.0.0/16
2019-08-07 07:02:12 +00:00
2020-02-24 15:03:48 +00:00
redis:
image: redis:5.0
container_name: appwrite_redis
2019-10-01 21:12:48 +00:00
restart: unless-stopped
2019-12-05 05:30:23 +00:00
networks:
2020-02-25 09:13:36 +00:00
- appwrite
2020-02-29 06:24:46 +00:00
volumes:
- appwrite-redis:/data:rw
2019-08-08 21:49:46 +00:00
2020-02-24 15:03:48 +00:00
clamav:
image: appwrite/clamav:1.0.9
container_name: appwrite_clamav
2019-10-01 21:12:48 +00:00
restart: unless-stopped
2019-12-05 05:30:23 +00:00
networks:
2020-02-25 09:13:36 +00:00
- appwrite
2020-02-24 15:03:48 +00:00
volumes:
2020-02-25 09:13:36 +00:00
- appwrite-uploads:/storage/uploads
2019-09-30 22:43:07 +00:00
2019-10-01 21:12:48 +00:00
influxdb:
image: influxdb:1.6
container_name: appwrite_influxdb
2019-12-05 05:30:23 +00:00
restart: unless-stopped
networks:
2020-02-25 09:13:36 +00:00
- appwrite
2019-10-01 21:12:48 +00:00
volumes:
2020-02-25 09:13:36 +00:00
- appwrite-influxdb:/var/lib/influxdb:rw
2019-10-01 21:12:48 +00:00
telegraf:
image: appwrite/telegraf:1.0.0
container_name: appwrite_telegraf
2019-12-05 05:30:23 +00:00
restart: unless-stopped
networks:
2020-02-25 09:13:36 +00:00
- appwrite
2019-12-05 05:30:23 +00:00
2020-03-01 11:20:39 +00:00
# redis-commander:
# image: rediscommander/redis-commander:latest
# restart: unless-stopped
# networks:
# - appwrite
# environment:
# - REDIS_HOSTS=redis
# ports:
# - "8081:8081"
2020-03-01 11:14:55 +00:00
2020-01-12 06:35:37 +00:00
# resque:
# image: registry.gitlab.com/appwrite/appwrite/resque-web:v1.0.2
# restart: unless-stopped
# networks:
2020-02-25 09:13:36 +00:00
# - appwrite
2020-01-12 06:35:37 +00:00
# ports:
2020-02-25 09:13:36 +00:00
# - "5678:5678"
2020-01-12 06:35:37 +00:00
# environment:
2020-02-25 09:13:36 +00:00
# - RESQUE_WEB_HOST=redis
# - RESQUE_WEB_PORT=6379
# - RESQUE_WEB_HTTP_BASIC_AUTH_USER=user
# - RESQUE_WEB_HTTP_BASIC_AUTH_PASSWORD=password
2020-01-11 13:58:02 +00:00
2020-04-24 17:09:09 +00:00
chronograf:
image: chronograf:1.5
container_name: appwrite_chronograf
2020-01-11 21:53:57 +00:00
restart: unless-stopped
2020-01-11 13:58:02 +00:00
networks:
2020-04-24 17:09:09 +00:00
- appwrite
volumes:
- appwrite-chronograf:/var/lib/chronograf
ports:
- "8888:8888"
environment:
- INFLUXDB_URL=http://influxdb:8086
- KAPACITOR_URL=http://kapacitor:9092
- AUTH_DURATION=48h
- TOKEN_SECRET=duperduper5674829!jwt
- GH_CLIENT_ID=d86f7145a41eacfc52cc
- GH_CLIENT_SECRET=9e0081062367a2134e7f2ea95ba1a32d08b6c8ab
- GH_ORGS=appwrite
2019-12-05 05:30:23 +00:00
networks:
2020-02-25 07:55:55 +00:00
gateway:
2019-12-05 05:30:23 +00:00
appwrite:
volumes:
2020-02-29 06:24:46 +00:00
appwrite-mariadb:
appwrite-redis:
appwrite-cache:
appwrite-uploads:
2020-02-23 08:56:27 +00:00
appwrite-certificates:
2019-11-29 07:33:42 +00:00
appwrite-influxdb:
2020-04-24 17:09:09 +00:00
appwrite-chronograf:
2020-02-25 10:04:12 +00:00
appwrite-config: