export QUAY=/var/lib/docker/quay

mkdir -p $QUAY/postgres
setfacl -m u:26:-wx $QUAY/postgres

docker run -d --name postgresql \
	-e POSTGRES_USER=user \
	-e POSTGRES_PASSWORD=pass \
	-e POSTGRES_DB=quay \
	-p 5432:5432 \
	-v $QUAY/postgres:/var/lib/postgresql/data:Z \
	postgres:10.12

docker exec -it postgresql /bin/bash -c 'echo "CREATE EXTENSION IF NOT EXISTS pg_trgm" | psql -d quay -U user'

docker inspect -f "{{.NetworkSettings.IPAddress}}" postgresql

docker run  -it --name redis \
	-p 6379:6379 \
	redis:6.2.14 \
	redis-server --test-memory

docker inspect -f "{{.NetworkSettings.IPAddress}}" redis

docker run --rm -it --name quay_config -p 8080:8080 quay.io/projectquay/quay:3.11.1 config secret


mkdir $QUAY/storage
mkdir $QUAY/config
setfacl -m u:1001:-wx $QUAY/storage
setfacl -m u:1001:-wx $QUAY/config

docker run -p 8033:8080 \
   --name=quay \
   --privileged=true \
   -v $QUAY/config:/conf/stack:Z \
   -v $QUAY/storage:/datastorage:Z \
   -d quay.io/projectquay/quay:3.11.1


docker run -d --name redis \
        -p 6379:6379 \
		-m 4g \
        redis:6.2.14 \
        --requirepass strongpassword

docker login --tls-verify=false quay:8033

V2ryStr@ngPss