chore: reformat docker-compose.yaml

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2021-01-14 16:28:00 +01:00
parent cff4a11b41
commit 0e1bc202c6
No known key found for this signature in database
GPG Key ID: 34CC109EB5ED1C2A
1 changed files with 34 additions and 33 deletions

View File

@ -1,39 +1,40 @@
# This docker-compose file provides quick setups for testing different storage backend options. # This docker-compose file provides quick setups for testing different storage backend options.
version: "3.8" version: "3.8"
services: services:
mysql: mysql:
# For using percona-xtradb you need to make strict mode permissive with: # 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;" # 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 # See: https://www.percona.com/doc/percona-xtradb-cluster/5.7/features/pxc-strict-mode.html
# image: percona/percona-xtradb-cluster:5.7 # image: percona/percona-xtradb-cluster:5.7
# image: mariadb:10.5 # image: mariadb:10.5
# image: mysql:5.6 # image: mysql:5.6
# image: mysql:8.0 # image: mysql:8.0
image: mysql:5.7 image: mysql:5.7
environment: environment:
MYSQL_DATABASE: dex MYSQL_DATABASE: dex
MYSQL_USER: mysql MYSQL_USER: mysql
MYSQL_PASSWORD: mysql MYSQL_PASSWORD: mysql
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
ports: ports:
- "127.0.0.1:3306:3306" - "127.0.0.1:3306:3306"
postgres: postgres:
image: postgres:10.15 image: postgres:10.15
environment: environment:
POSTGRES_DB: dex POSTGRES_DB: dex
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
ports: ports:
- "127.0.0.1:5432:5432" - "127.0.0.1:5432:5432"
etcd: etcd:
image: gcr.io/etcd-development/etcd:v3.4.9 image: gcr.io/etcd-development/etcd:v3.4.9
environment: environment:
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379 ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
ETCD_ADVERTISE_CLIENT_URLS: http://0.0.0.0:2379 ETCD_ADVERTISE_CLIENT_URLS: http://0.0.0.0:2379
ports: ports:
- "127.0.0.1:2379:2379" - "127.0.0.1:2379:2379"
# For testing the Kubernetes storage backend we suggest https://kind.sigs.k8s.io/: # For testing the Kubernetes storage backend we suggest https://kind.sigs.k8s.io/:
# kind create cluster # kind create cluster