Background
I am simply trying to setup red hat quay via docker compose. You can find more here but it is basically a container registry solution.
My current Setup looks like this it consist of a docker-compose.yml
file and a config.yaml
file . They are both located in the same directory.
docker-compose.yaml
services:
quay_postgres:
image: postgres:13
ports:
- "5432:5432"
environment:
POSTGRES_DB: quay
POSTGRES_USER: quayuser
POSTGRES_PASSWORD: mysecretpassword
volumes:
- quay_postgres_data:/var/lib/postgresql/data
quay_redis:
image: redis:6
ports:
- "6379:6379"
volumes:
- quay_redis_data:/data
quay:
image: quay.io/projectquay/quay:latest
ports:
- "8080:8080"
depends_on:
- quay_postgres
- quay_redis
environment:
- QUAY_CONFIG_PATH=/conf/stack/config.yaml
volumes:
- ./config.yaml:/conf/stack/config.yaml
- quay_storage:/datastorage
- quay_tls:/tls
volumes:
quay_postgres_data:
quay_redis_data:
quay_storage:
quay_tls:
My config.yaml file
FEATURES:
USER_CREATION: true
DATABASE:
DB_URI: postgresql://quayuser:mysecretpassword@quay_postgres:5432/quay
DISTRIBUTED_STORAGE_CONFIG:
local_us:
- LocalStorage
- storage_path: /datastorage
HOST_SETTINGS:
SERVER_HOSTNAME: quay.local
REDIS:
BUILDLOGS_REDIS:
HOST: quay_redis
PORT: 6379
USER_EVENTS_REDIS:
HOST: quay_redis
PORT: 6379
When i do docker compose up -d
and run the file and then when i do docker-compose logs quay
I see the following
quay-1 | Validating Configuration
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | Field Group | Error | Status |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | AccessSettings | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | ActionLogArchiving | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | AppTokenAuthentication | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | BitbucketBuildTrigger | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | BuildManager | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | Database | DB_URI is required. | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | DistributedStorage | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | ElasticSearch | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | Email | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | GitHubBuildTrigger | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | GitHubLogin | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | GitLabBuildTrigger | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | GoogleLogin | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | HostSettings | SERVER_HOSTNAME is required | ???? |
quay-1 | + +------------------------------------------+--------+
quay-1 | | | SERVER_HOSTNAME must be of type Hostname | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | JWTAuthentication | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | LDAP | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | OIDC | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | QuayDocumentation | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | Redis | BUILDLOGS_REDIS is required | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | RepoMirror | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | SecurityScanner | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | TeamSyncing | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | TimeMachine | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
quay-1 | | UserVisibleSettings | - | ???? |
quay-1 | +------------------------+------------------------------------------+--------+
My Issue / Where I am stuck
I am not sure why i am getting an error or what I did wrong. BUILDLOGS_REDIS
is already specified in my config.yaml. Regarding the other errors for HostSettings
i have specified that as well and also DBI_URI
is specified too.
I spent 3 hours looking around but i am not able to figure out what i did wrong. I came across the official documentation as well and not able to see what i did wrong. I would appreciate any help here.