2021-09-23 23:46:17 +02:00
|
|
|
version: '3.5'
|
|
|
|
|
2021-11-02 13:20:38 +01:00
|
|
|
## Legacy Database Servers for Development & Testing
|
2021-09-23 23:46:17 +02:00
|
|
|
services:
|
2021-10-25 18:32:08 +02:00
|
|
|
## MariaDB 10.5.5 Database Server
|
|
|
|
## affected by MDEV-25362: Incorrect name resolution for subqueries in ON expressions
|
2021-10-25 17:10:50 +02:00
|
|
|
## see https://jira.mariadb.org/browse/MDEV-25362
|
2021-09-24 22:46:03 +02:00
|
|
|
mariadb-10-5-5:
|
|
|
|
image: mariadb:10.5.5
|
|
|
|
command: mysqld --port=4001 --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
|
|
|
expose:
|
2021-10-25 17:10:50 +02:00
|
|
|
- "4001" # Database port (internal)
|
2021-09-24 22:46:03 +02:00
|
|
|
volumes:
|
2021-11-02 13:20:38 +01:00
|
|
|
- "./scripts/sql/mariadb-init.sql:/docker-entrypoint-initdb.d/init.sql"
|
2021-09-24 22:46:03 +02:00
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: photoprism
|
|
|
|
MYSQL_USER: photoprism
|
|
|
|
MYSQL_PASSWORD: photoprism
|
|
|
|
MYSQL_DATABASE: photoprism
|
|
|
|
|
2021-10-25 18:32:08 +02:00
|
|
|
## MariaDB 10.3 Database Server
|
2021-09-23 23:46:17 +02:00
|
|
|
mariadb-10-3:
|
|
|
|
image: mariadb:10.3
|
2021-09-24 09:26:48 +02:00
|
|
|
command: mysqld --port=4001 --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
2021-09-23 23:46:17 +02:00
|
|
|
expose:
|
2021-10-25 17:10:50 +02:00
|
|
|
- "4001" # Database port (internal)
|
2021-09-23 23:46:17 +02:00
|
|
|
volumes:
|
2021-11-02 13:20:38 +01:00
|
|
|
- "./scripts/sql/mariadb-init.sql:/docker-entrypoint-initdb.d/init.sql"
|
2021-09-23 23:46:17 +02:00
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: photoprism
|
|
|
|
MYSQL_USER: photoprism
|
|
|
|
MYSQL_PASSWORD: photoprism
|
|
|
|
MYSQL_DATABASE: photoprism
|
|
|
|
|
2021-10-25 18:32:08 +02:00
|
|
|
## MariaDB 10.2 Database Server
|
2021-09-23 23:46:17 +02:00
|
|
|
mariadb-10-2:
|
|
|
|
image: mariadb:10.2
|
2021-09-24 09:26:48 +02:00
|
|
|
command: mysqld --port=4001 --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
2021-09-23 23:46:17 +02:00
|
|
|
expose:
|
2021-10-25 17:10:50 +02:00
|
|
|
- "4001" # Database port (internal)
|
2021-09-23 23:46:17 +02:00
|
|
|
volumes:
|
2021-11-02 13:20:38 +01:00
|
|
|
- "./scripts/sql/mariadb-init.sql:/docker-entrypoint-initdb.d/init.sql"
|
2021-09-23 23:46:17 +02:00
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: photoprism
|
|
|
|
MYSQL_USER: photoprism
|
|
|
|
MYSQL_PASSWORD: photoprism
|
|
|
|
MYSQL_DATABASE: photoprism
|
|
|
|
|
2021-10-25 18:32:08 +02:00
|
|
|
## MariaDB 10.1 Database Server
|
2021-09-23 23:46:17 +02:00
|
|
|
mariadb-10-1:
|
|
|
|
image: mariadb:10.1
|
2021-09-24 09:26:48 +02:00
|
|
|
command: mysqld --port=4001 --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
2021-09-23 23:46:17 +02:00
|
|
|
expose:
|
2021-10-25 17:10:50 +02:00
|
|
|
- "4001" # Database port (internal)
|
2021-09-23 23:46:17 +02:00
|
|
|
volumes:
|
2021-11-02 13:20:38 +01:00
|
|
|
- "./scripts/sql/mariadb-init.sql:/docker-entrypoint-initdb.d/init.sql"
|
2021-09-23 23:46:17 +02:00
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: photoprism
|
|
|
|
MYSQL_USER: photoprism
|
|
|
|
MYSQL_PASSWORD: photoprism
|
|
|
|
MYSQL_DATABASE: photoprism
|
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
|
|
|
name: shared
|