Skip to content

Instantly share code, notes, and snippets.

@meyer1994
Created January 7, 2022 21:04
Show Gist options
  • Save meyer1994/b92695c60524b5e345d99b83b2c89911 to your computer and use it in GitHub Desktop.
Save meyer1994/b92695c60524b5e345d99b83b2c89911 to your computer and use it in GitHub Desktop.
Minimal working AppWrite with database
version: '3'
services:
appwrite:
image: appwrite/appwrite:0.12.0
environment:
- _APP_DB_HOST=mysql
- _APP_DB_PORT=3306
- _APP_DB_SCHEMA=appwrite
- _APP_DB_USER=user
- _APP_DB_PASS=password
- _APP_DB_ROOT_PASS=password
- _APP_REDIS_HOST=redis
- _APP_REDIS_PORT=6379
- _APP_DOMAIN=localhost
- _APP_DOMAIN_TARGET=localhost
ports:
- 80:80
- 8080:8080
realtime:
image: appwrite/appwrite:0.12.0
entrypoint: realtime
environment:
- _APP_DB_HOST=mysql
- _APP_DB_PORT=3306
- _APP_DB_SCHEMA=appwrite
- _APP_DB_USER=user
- _APP_DB_PASS=password
- _APP_DB_ROOT_PASS=password
- _APP_REDIS_HOST=redis
- _APP_REDIS_PORT=6379
workerdb:
image: appwrite/appwrite:0.12.0
entrypoint: worker-database
environment:
- _APP_DB_HOST=mysql
- _APP_DB_PORT=3306
- _APP_DB_SCHEMA=appwrite
- _APP_DB_USER=user
- _APP_DB_PASS=password
- _APP_DB_ROOT_PASS=password
- _APP_REDIS_HOST=redis
- _APP_REDIS_PORT=6379
mysql:
image: mariadb
environment:
- MYSQL_DATABASE=appwrite
- MYSQL_USER=user
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=password
redis:
image: redis:alpine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment