$ docker compose version
Docker Compose version v2.12.2
$ docker compose config
WARN[0000] The "f8Jqvw8bLL6nc6H" variable is not set. Defaulting to a blank string.
WARN[0000] The "f8Jqvw8bLL6nc6H" variable is not set. Defaulting to a blank string.
WARN[0000] The "f8Jqvw8bLL6nc6H" variable is not set. Defaulting to a blank string.
WARN[0000] The "f8Jqvw8bLL6nc6H" variable is not set. Defaulting to a blank string.
WARN[0000] The "f8Jqvw8bLL6nc6H" variable is not set. Defaulting to a blank string.
WARN[0000] The "f8Jqvw8bLL6nc6H" variable is not set. Defaulting to a blank string.
name: mattermost
services:
mattermost:
depends_on:
postgres:
condition: service_started
environment:
MM_BLEVESETTINGS_INDEXDIR: /mattermost/bleve-indexes
MM_SERVICESETTINGS_SITEURL: https://blind.url
MM_SQLSETTINGS_DATASOURCE: postgres://blind-user-name:blind-password@postgres:5432/mattermost?sslmode=disable&connect_timeout=10
MM_SQLSETTINGS_DRIVERNAME: postgres
TZ: UTC
image: mattermost/mattermost-team-edition:7.5.1
networks:
default: null
pids_limit: 200
ports:
- mode: ingress
target: 8065
published: "8065"
protocol: tcp
restart: unless-stopped
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp
volumes:
- type: bind
source: /opt/mattermost/volumes/app/mattermost/config
target: /mattermost/config
bind:
create_host_path: true
- type: bind
source: /opt/mattermost/volumes/app/mattermost/data
target: /mattermost/data
bind:
create_host_path: true
- type: bind
source: /opt/mattermost/volumes/app/mattermost/logs
target: /mattermost/logs
bind:
create_host_path: true
- type: bind
source: /opt/mattermost/volumes/app/mattermost/plugins
target: /mattermost/plugins
bind:
create_host_path: true
- type: bind
source: /opt/mattermost/volumes/app/mattermost/client/plugins
target: /mattermost/client/plugins
bind:
create_host_path: true
- type: bind
source: /opt/mattermost/volumes/app/mattermost/bleve-indexes
target: /mattermost/bleve-indexes
bind:
create_host_path: true
postgres:
environment:
POSTGRES_DB: blind-db
POSTGRES_PASSWORD:blind-password
POSTGRES_USER: blind-user
TZ: UTC
image: postgres:13-alpine
networks:
default: null
pids_limit: 100
read_only: true
restart: unless-stopped
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp
- /var/run/postgresql
volumes:
- type: bind
source: /opt/mattermost/volumes/db/var/lib/postgresql/data
target: /var/lib/postgresql/data
bind:
create_host_path: true
networks:
default:
name: mattermost_default
docker logs mattermost-postgres-1
PostgreSQL Database directory appears to contain a database; Skipping initialization
2022-11-24 02:11:08.982 UTC [1] LOG: starting PostgreSQL 13.9 on x86_64-pc-linux-musl, compiled by gcc (Alpine 11.2.1_git20220219) 11.2.1 20220219, 64-bit
2022-11-24 02:11:08.983 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2022-11-24 02:11:08.983 UTC [1] LOG: listening on IPv6 address "::", port 5432
2022-11-24 02:11:08.984 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2022-11-24 02:11:08.988 UTC [22] LOG: database system was shut down at 2022-11-24 01:48:14 UTC
2022-11-24 02:11:08.992 UTC [1] LOG: database system is ready to accept connections
2022-11-24 02:11:09.571 UTC [29] FATAL: password authentication failed for user "blind-user-name"
2022-11-24 02:11:09.571 UTC [29] DETAIL: Password does not match for user "blind-user-name".
Expected behavior
no error
Observed behavior
$ docker compose config
WARN[0000] The "f8Jqvw8bLL6nc6H" variable is not set. Defaulting to a blank string.
WARN[0000] The "f8Jqvw8bLL6nc6H" variable is not set. Defaulting to a blank string.
WARN[0000] The "f8Jqvw8bLL6nc6H" variable is not set. Defaulting to a blank string.
WARN[0000] The "f8Jqvw8bLL6nc6H" variable is not set. Defaulting to a blank string.
I assume f8Jqvw8bLL6nc6H is not your password, right?
Inside your docker directory, can you please run the following command and post the output:
grep -r f8Jqvw8bLL6nc6H .
If the result contains sensitive information, please replace all sensitive letters with an x but leave all the other characters (spaces, quotation marks, etc.) intact which is necessary for troubleshooting.
Hey, I ve got the same problem when running $ docker compose up -d. My docker compose version is v2.5.0 on Ubuntu 22.04. If I run the command: $ docker compose up -d I get the following Warnings:
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “HTTPS_HOST” variable is not set. Defaulting to a blank string.
WARN[0000] The “HTTP_HOST” variable is not set. Defaulting to a blank string.
WARN[0000] The “HTTPS_PORT” variable is not set. Defaulting to a blank string.
WARN[0000] The “HTTP_PORT” variable is not set. Defaulting to a blank string.
WARN[0000] The “LETSENCRYPT_MODE” variable is not set. Defaulting to a blank string.
WARN[0000] The “HTTP_PORT” variable is not set. Defaulting to a blank string.
WARN[0000] The “HTTPS_PORT” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “HTTPS_HOST” variable is not set. Defaulting to a blank string.
WARN[0000] The “HTTP_HOST” variable is not set. Defaulting to a blank string.
WARN[0000] The “ADMIN_EMAIL” variable is not set. Defaulting to a blank string.
WARN[0000] The “LETSENCRYPT_MODE” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “POSTGRESQL_MAX_CONNECTIONS” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “JENKINS_HTTP_PORT” variable is not set. Defaulting to a blank string.
WARN[0000] The “JENKINS_HTTP_PORT” variable is not set. Defaulting to a blank string.
WARN[0000] The “JENKINS_HTTPS_PORT” variable is not set. Defaulting to a blank string.
WARN[0000] The “JENKINS_HTTPS_PORT” variable is not set. Defaulting to a blank string.
WARN[0000] The “JENKINS_HTTP_PORT” variable is not set. Defaulting to a blank string.
WARN[0000] The “JENKINS_HTTPS_PORT” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
WARN[0000] The “COMPOSE_PROJECT_NAME” variable is not set. Defaulting to a blank string.
services.jenkins.ports array items[0,1] must be unique
@Eooooq not sure if this is just a formating error when you masked your password, but there’s also a space missing here for POSTGRES_PASSWORD - not sure if this could cause such an error then.
The error message you’re getting (with regards to the password of the PostgreSQL user being wrong) could also indicate that there’s a problem with this key/value definition.
@Lockencharly welcome to the Mattermost forums!
Your case is different here, since the docker-compose version you’re using is too old.
You need to upgrade to at least version 1.26.0 (which is just the next version after yours) for the .env variable substitution to work.
Upgrading docker-compose is easy, it’s just a single binary to download, so you might also want to just upgrade to the latest available version and try again then.