fix: docker-compose setup
The new image of anandology/frappe-bench has the following changes: - the bench directoy is changed from /home/bench/frappe-bench to /opt/frappe-bench - dependency on external redis service is removed Updated the docker-compose.yml to reflect these changes. Also pinned the docker image to anandology/frappe-bench:2021.10
This commit is contained in:
@@ -1,12 +1,6 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
redis-cache:
|
|
||||||
image: redis:alpine
|
|
||||||
redis-queue:
|
|
||||||
image: redis:alpine
|
|
||||||
redis-socketio:
|
|
||||||
image: redis:alpine
|
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb
|
image: mariadb
|
||||||
volumes:
|
volumes:
|
||||||
@@ -15,18 +9,15 @@ services:
|
|||||||
- MYSQL_ROOT_PASSWORD=root
|
- MYSQL_ROOT_PASSWORD=root
|
||||||
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
||||||
bench:
|
bench:
|
||||||
image: anandology/frappe-bench
|
image: anandology/frappe-bench:2021.10
|
||||||
volumes:
|
volumes:
|
||||||
- .:/home/bench/frappe-bench/apps/community
|
- .:/opt/frappe-bench/apps/community
|
||||||
environment:
|
environment:
|
||||||
- FRAPPE_APPS=community
|
- FRAPPE_APPS=community
|
||||||
- FRAPPE_ALLOW_TESTS=true
|
- FRAPPE_ALLOW_TESTS=true
|
||||||
- FRAPPE_SITE_NAME=frappe.localhost
|
- FRAPPE_SITE_NAME=frappe.localhost
|
||||||
depends_on:
|
depends_on:
|
||||||
- mariadb
|
- mariadb
|
||||||
- redis-cache
|
|
||||||
- redis-queue
|
|
||||||
- redis-socketio
|
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
- 9000:9000
|
- 9000:9000
|
||||||
|
|||||||
Reference in New Issue
Block a user