2019-08-03 18:32:54 +05:30
|
|
|
# This docker-compose file provides quick setups for testing different storage backend options.
|
|
|
|
version: "3.8"
|
2021-01-14 20:58:00 +05:30
|
|
|
|
2019-08-03 18:32:54 +05:30
|
|
|
services:
|
2021-01-14 20:58:00 +05:30
|
|
|
mysql:
|
|
|
|
# For using percona-xtradb you need to make strict mode permissive with:
|
|
|
|
# docker-compose exec mysql mysql -uroot -proot -e "SET GLOBAL pxc_strict_mode=PERMISSIVE;"
|
|
|
|
# See: https://www.percona.com/doc/percona-xtradb-cluster/5.7/features/pxc-strict-mode.html
|
|
|
|
# image: percona/percona-xtradb-cluster:5.7
|
|
|
|
# image: mariadb:10.5
|
|
|
|
# image: mysql:5.6
|
|
|
|
# image: mysql:8.0
|
|
|
|
image: mysql:5.7
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: dex
|
|
|
|
MYSQL_USER: mysql
|
|
|
|
MYSQL_PASSWORD: mysql
|
|
|
|
MYSQL_ROOT_PASSWORD: root
|
2019-08-03 18:32:54 +05:30
|
|
|
|
2021-01-14 20:58:00 +05:30
|
|
|
postgres:
|
|
|
|
image: postgres:10.15
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: dex
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
2019-08-03 18:32:54 +05:30
|
|
|
|
2021-01-14 20:58:00 +05:30
|
|
|
etcd:
|
|
|
|
image: gcr.io/etcd-development/etcd:v3.4.9
|
|
|
|
environment:
|
|
|
|
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
|
|
|
|
ETCD_ADVERTISE_CLIENT_URLS: http://0.0.0.0:2379
|
2019-08-03 18:32:54 +05:30
|
|
|
|
2021-01-14 20:58:00 +05:30
|
|
|
# For testing the Kubernetes storage backend we suggest https://kind.sigs.k8s.io/:
|
|
|
|
# kind create cluster
|