2021-12-10 08:53:43 +00:00
|
|
|
version: "3"
|
2020-02-20 17:05:49 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
redis-cache:
|
|
|
|
image: redis:latest
|
|
|
|
restart: on-failure
|
|
|
|
volumes:
|
|
|
|
- redis-cache-vol:/data
|
|
|
|
|
|
|
|
redis-queue:
|
|
|
|
image: redis:latest
|
|
|
|
restart: on-failure
|
|
|
|
volumes:
|
|
|
|
- redis-queue-vol:/data
|
|
|
|
|
|
|
|
redis-socketio:
|
|
|
|
image: redis:latest
|
|
|
|
restart: on-failure
|
|
|
|
volumes:
|
|
|
|
- redis-socketio-vol:/data
|
|
|
|
|
|
|
|
mariadb:
|
2021-12-05 09:02:08 +00:00
|
|
|
image: mariadb:10.6
|
2020-02-20 17:05:49 +00:00
|
|
|
restart: on-failure
|
2021-12-05 09:02:08 +00:00
|
|
|
command:
|
|
|
|
- --character-set-server=utf8mb4
|
|
|
|
- --collation-server=utf8mb4_unicode_ci
|
|
|
|
- --skip-character-set-client-handshake
|
|
|
|
- --skip-innodb-read-only-compressed # Temporary fix for MariaDB 10.6
|
2020-02-20 17:05:49 +00:00
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
2021-12-05 09:02:08 +00:00
|
|
|
# Sometimes db initialization takes longer than 10 seconds and site-creator goes away.
|
|
|
|
# Frappe doesn't use CONVERT_TZ() function that requires time zone info, so we can just skip it.
|
|
|
|
- MYSQL_INITDB_SKIP_TZINFO=1
|
2020-02-20 17:05:49 +00:00
|
|
|
volumes:
|
|
|
|
- mariadb-vol:/var/lib/mysql
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mariadb-vol:
|
|
|
|
redis-cache-vol:
|
|
|
|
redis-queue-vol:
|
|
|
|
redis-socketio-vol:
|