2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-08 06:15:26 +00:00

Update docker-compose.yml (#1415)

A challenge I encountered while setting up the Development instance. The command 'bench init --skip-redis-config-generation frappe-bench' kept generating errors, which I discovered were due to an architecture mismatch between Docker and macOS. By updating the platform to linux/amd64 in my code, I was able to resolve this issue.
This commit is contained in:
Chev91 2024-06-25 07:06:25 +02:00 committed by GitHub
parent 507bbe2274
commit 6c798cfb2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@ version: "3.7"
services: services:
mariadb: mariadb:
image: docker.io/mariadb:10.6 image: docker.io/mariadb:10.6
platform: linux/amd64
command: command:
- --character-set-server=utf8mb4 - --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci - --collation-server=utf8mb4_unicode_ci
@ -37,12 +38,15 @@ services:
redis-cache: redis-cache:
image: docker.io/redis:alpine image: docker.io/redis:alpine
platform: linux/amd64
redis-queue: redis-queue:
image: docker.io/redis:alpine image: docker.io/redis:alpine
platform: linux/amd64
frappe: frappe:
image: docker.io/frappe/bench:latest image: docker.io/frappe/bench:latest
platform: linux/amd64
command: sleep infinity command: sleep infinity
environment: environment:
- SHELL=/bin/bash - SHELL=/bin/bash