feat: dev-instance using docker-compose

This commit is contained in:
Anand Chitipothu
2021-04-29 14:13:01 +05:30
parent f7434f376f
commit 0cfd6d7634
2 changed files with 81 additions and 3 deletions

34
docker-compose.yml Normal file
View File

@@ -0,0 +1,34 @@
version: "3"
services:
redis-cache:
image: redis:alpine
redis-queue:
image: redis:alpine
redis-socketio:
image: redis:alpine
mariadb:
image: mariadb
volumes:
- mariadb-storage:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
bench:
image: anandology/frappe-bench
volumes:
- .:/home/bench/frappe-bench/apps/community
environment:
- FRAPPE_APPS=community
- FRAPPE_ALLOW_TESTS=true
- FRAPPE_SITE_NAME=frappe.localhost
depends_on:
- mariadb
- redis-cache
- redis-queue
- redis-socketio
ports:
- 8000:8000
- 9000:9000
volumes:
mariadb-storage: {}