2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-08 14:21:05 +00:00

#1370 Adding platform parameter (#1371)

Adding the platform parameter to be able to run this compose in non amd64 platforms
This commit is contained in:
Richard Pablo 2024-04-11 13:44:32 +01:00 committed by GitHub
parent e94081df87
commit ade69369fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,7 @@ x-backend-defaults: &backend_defaults
services:
configurator:
<<: *backend_defaults
platform: linux/amd64
entrypoint:
- bash
- -c
@ -40,9 +41,11 @@ services:
backend:
<<: *backend_defaults
platform: linux/amd64
frontend:
<<: *customizable_image
platform: linux/amd64
command:
- nginx-entrypoint.sh
environment:
@ -62,6 +65,7 @@ services:
websocket:
<<: [*depends_on_configurator, *customizable_image]
platform: linux/amd64
command:
- node
- /home/frappe/frappe-bench/apps/frappe/socketio.js
@ -70,14 +74,17 @@ services:
queue-short:
<<: *backend_defaults
platform: linux/amd64
command: bench worker --queue short,default
queue-long:
<<: *backend_defaults
platform: linux/amd64
command: bench worker --queue long,default,short
scheduler:
<<: *backend_defaults
platform: linux/amd64
command: bench schedule
# ERPNext requires local assets access (Frappe does not)