2021-09-23 23:46:17 +02:00
|
|
|
version: '3.5'
|
|
|
|
|
2022-11-04 12:20:26 +01:00
|
|
|
## FOR TEST AND DEVELOPMENT ONLY, DO NOT USE IN PRODUCTION ##
|
|
|
|
## Setup: https://docs.photoprism.app/developer-guide/setup/ ##
|
2022-04-06 17:46:41 +02:00
|
|
|
|
2021-09-23 23:46:17 +02:00
|
|
|
services:
|
2022-03-29 00:21:50 +02:00
|
|
|
## MariaDB 10.8 Database Server
|
|
|
|
## Docs: https://mariadb.com/kb/en/release-notes-mariadb-108-series/
|
|
|
|
mariadb-10-8:
|
2022-06-01 21:44:58 +02:00
|
|
|
image: mariadb:10.8
|
2022-07-23 21:43:08 +02:00
|
|
|
security_opt: # see https://github.com/MariaDB/mariadb-docker/issues/434#issuecomment-1136151239
|
|
|
|
- seccomp:unconfined
|
|
|
|
- apparmor:unconfined
|
2022-06-01 21:44:58 +02:00
|
|
|
command: mysqld --port=4001 --innodb-buffer-pool-size=256M --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
|
2022-03-29 00:21:50 +02:00
|
|
|
expose:
|
|
|
|
- "4001"
|
|
|
|
ports:
|
|
|
|
- "4002:4001" # database port (host:container)
|
|
|
|
volumes:
|
|
|
|
- "./scripts/sql/mariadb-init.sql:/docker-entrypoint-initdb.d/init.sql"
|
|
|
|
environment:
|
2022-03-30 13:47:49 +02:00
|
|
|
MARIADB_AUTO_UPGRADE: "1"
|
|
|
|
MARIADB_INITDB_SKIP_TZINFO: "1"
|
|
|
|
MARIADB_DATABASE: "photoprism"
|
|
|
|
MARIADB_USER: "photoprism"
|
|
|
|
MARIADB_PASSWORD: "photoprism"
|
|
|
|
MARIADB_ROOT_PASSWORD: "photoprism"
|
2022-03-29 00:21:50 +02:00
|
|
|
|
2022-01-06 11:31:37 +01:00
|
|
|
## MariaDB 10.7 Database Server
|
|
|
|
mariadb-10-7:
|
|
|
|
image: mariadb:10.7
|
2022-06-01 21:44:58 +02:00
|
|
|
command: mysqld --port=4001 --innodb-buffer-pool-size=256M --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
|
2022-01-06 11:31:37 +01:00
|
|
|
expose:
|
2022-02-08 12:51:12 +01:00
|
|
|
- "4001" # database port (internal)
|
2022-01-06 11:31:37 +01:00
|
|
|
volumes:
|
|
|
|
- "./scripts/sql/mariadb-init.sql:/docker-entrypoint-initdb.d/init.sql"
|
|
|
|
environment:
|
2022-03-30 13:47:49 +02:00
|
|
|
MARIADB_AUTO_UPGRADE: "1"
|
|
|
|
MARIADB_INITDB_SKIP_TZINFO: "1"
|
|
|
|
MARIADB_DATABASE: "photoprism"
|
|
|
|
MARIADB_USER: "photoprism"
|
|
|
|
MARIADB_PASSWORD: "photoprism"
|
|
|
|
MARIADB_ROOT_PASSWORD: "photoprism"
|
2022-01-06 11:31:37 +01:00
|
|
|
|
|
|
|
## MariaDB 10.5.5 Database Server
|
2021-10-25 17:10:50 +02:00
|
|
|
## Affected by MDEV-25362: Incorrect name resolution for subqueries in ON expressions
|
|
|
|
## 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
|
2022-06-01 21:44:58 +02:00
|
|
|
command: mysqld --port=4001 --innodb-buffer-pool-size=256M --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-24 22:46:03 +02:00
|
|
|
expose:
|
2022-02-08 12:51:12 +01:00
|
|
|
- "4001" # database port (internal)
|
2021-09-24 22:46:03 +02:00
|
|
|
volumes:
|
2022-01-06 11:31:37 +01:00
|
|
|
- "./scripts/sql/mariadb-init.sql:/docker-entrypoint-initdb.d/init.sql"
|
2021-09-24 22:46:03 +02:00
|
|
|
environment:
|
2022-03-30 13:47:49 +02:00
|
|
|
MYSQL_DATABASE: "photoprism"
|
|
|
|
MYSQL_USER: "photoprism"
|
|
|
|
MYSQL_PASSWORD: "photoprism"
|
|
|
|
MYSQL_ROOT_PASSWORD: "photoprism"
|
2021-09-24 22:46:03 +02:00
|
|
|
|
2022-01-06 11:31:37 +01:00
|
|
|
## MariaDB 10.3 Database Server
|
|
|
|
## Docs: https://mariadb.com/docs/reference/cs10.3/
|
2021-09-23 23:46:17 +02:00
|
|
|
mariadb-10-3:
|
|
|
|
image: mariadb:10.3
|
2022-06-01 21:44:58 +02:00
|
|
|
command: mysqld --port=4001 --innodb-buffer-pool-size=256M --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:
|
2022-02-08 12:51:12 +01:00
|
|
|
- "4001" # database port (internal)
|
2021-09-23 23:46:17 +02:00
|
|
|
volumes:
|
2022-01-06 11:31:37 +01:00
|
|
|
- "./scripts/sql/mariadb-init.sql:/docker-entrypoint-initdb.d/init.sql"
|
2021-09-23 23:46:17 +02:00
|
|
|
environment:
|
2022-03-30 13:47:49 +02:00
|
|
|
MYSQL_DATABASE: "photoprism"
|
|
|
|
MYSQL_USER: "photoprism"
|
|
|
|
MYSQL_PASSWORD: "photoprism"
|
|
|
|
MYSQL_ROOT_PASSWORD: "photoprism"
|
2021-09-23 23:46:17 +02:00
|
|
|
|
2022-01-06 11:31:37 +01:00
|
|
|
## MariaDB 10.2 Database Server
|
|
|
|
## Docs: https://mariadb.com/docs/reference/cs10.2/
|
2021-09-23 23:46:17 +02:00
|
|
|
mariadb-10-2:
|
|
|
|
image: mariadb:10.2
|
2022-06-01 21:44:58 +02:00
|
|
|
command: mysqld --port=4001 --innodb-buffer-pool-size=256M --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:
|
2022-02-08 12:51:12 +01:00
|
|
|
- "4001" # database port (internal)
|
2021-09-23 23:46:17 +02:00
|
|
|
volumes:
|
2022-01-06 11:31:37 +01:00
|
|
|
- "./scripts/sql/mariadb-init.sql:/docker-entrypoint-initdb.d/init.sql"
|
2021-09-23 23:46:17 +02:00
|
|
|
environment:
|
2022-03-30 13:47:49 +02:00
|
|
|
MYSQL_DATABASE: "photoprism"
|
|
|
|
MYSQL_USER: "photoprism"
|
|
|
|
MYSQL_PASSWORD: "photoprism"
|
|
|
|
MYSQL_ROOT_PASSWORD: "photoprism"
|
2021-09-23 23:46:17 +02:00
|
|
|
|
2022-01-06 11:31:37 +01:00
|
|
|
## MariaDB 10.1 Database Server
|
2021-09-23 23:46:17 +02:00
|
|
|
mariadb-10-1:
|
|
|
|
image: mariadb:10.1
|
2022-06-01 21:44:58 +02:00
|
|
|
command: mysqld --port=4001 --innodb-buffer-pool-size=256M --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:
|
2022-02-08 12:51:12 +01:00
|
|
|
- "4001" # database port (internal)
|
2021-09-23 23:46:17 +02:00
|
|
|
volumes:
|
2022-01-06 11:31:37 +01:00
|
|
|
- "./scripts/sql/mariadb-init.sql:/docker-entrypoint-initdb.d/init.sql"
|
2021-09-23 23:46:17 +02:00
|
|
|
environment:
|
2022-03-30 13:47:49 +02:00
|
|
|
MYSQL_DATABASE: "photoprism"
|
|
|
|
MYSQL_USER: "photoprism"
|
|
|
|
MYSQL_PASSWORD: "photoprism"
|
|
|
|
MYSQL_ROOT_PASSWORD: "photoprism"
|
2021-09-23 23:46:17 +02:00
|
|
|
|
2022-01-06 11:31:37 +01:00
|
|
|
## Join shared "photoprism-develop" network
|
2021-09-23 23:46:17 +02:00
|
|
|
networks:
|
|
|
|
default:
|
2022-09-18 15:32:32 +02:00
|
|
|
name: photoprism-develop
|
|
|
|
external: true
|