Skip to content

Instantly share code, notes, and snippets.

@MightyCreak
Created May 9, 2020 17:08
Show Gist options
  • Save MightyCreak/db297be9357c2fc38f415d045f484b7e to your computer and use it in GitHub Desktop.
Save MightyCreak/db297be9357c2fc38f415d045f484b7e to your computer and use it in GitHub Desktop.
# Copy this file to .env before building the container.
# Put any local modifications here.
BUILD_TAG=latest
POSTGRES_USER=postgres
POSTGRES_PASSWORD=testtest
OWNER_UID=1000
OWNER_GID=1000
# You can keep this as localhost unless you want to use the ssl sidecar
# container (I suggest terminating ssl on the reverse proxy instead).
HTTP_HOST=localhost
# You will likely need to set this to the correct value, see README.md
# for more information.
SELF_URL_PATH=http://localhost:8280/tt-rss
# bind exposed port to 127.0.0.1 by default in case reverse proxy is used.
# if you plan to run the container standalone and need origin port exposed
# use next HTTP_PORT definition (or remove "127.0.0.1:").
HTTP_PORT=127.0.0.1:8280
#HTTP_PORT=8280
Attaching to ttrss-docker_db_1, ttrss-docker_app_1, ttrss-docker_updater_1, ttrss-docker_web_1
app_1 | + pg_isready -h db -U postgres
db_1 | The files belonging to this database system will be owned by user "postgres".
db_1 | This user must also own the server process.
db_1 |
db_1 | The database cluster will be initialized with locale "en_US.utf8".
db_1 | The default database encoding has accordingly been set to "UTF8".
db_1 | The default text search configuration will be set to "english".
db_1 |
db_1 | Data page checksums are disabled.
db_1 |
db_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
updater_1 | + sleep 30
web_1 | Activating privacy features... done.
db_1 | creating subdirectories ... ok
web_1 | 2020/05/09 17:03:43 [INFO][cache:0xc0001ba280] Started certificate maintenance routine
db_1 | selecting dynamic shared memory implementation ... posix
web_1 |
web_1 | Serving HTTP on port 2015
web_1 | http://0.0.0.0:2015
web_1 |
web_1 | 2020/05/09 17:03:43 [INFO] Serving http://0.0.0.0:2015
db_1 | selecting default max_connections ... 100
db_1 | selecting default shared_buffers ... 128MB
db_1 | selecting default time zone ... UTC
db_1 | creating configuration files ... ok
db_1 | running bootstrap script ... ok
db_1 | performing post-bootstrap initialization ... sh: locale: not found
db_1 | 2020-05-09 17:03:42.784 UTC [29] WARNING: no usable system locales were found
db_1 | ok
db_1 | syncing data to disk ... ok
db_1 |
db_1 |
db_1 | Success. You can now start the database server using:
db_1 |
db_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
db_1 |
db_1 | initdb: warning: enabling "trust" authentication for local connections
db_1 | You can change this by editing pg_hba.conf or using the option -A, or
db_1 | --auth-local and --auth-host, the next time you run initdb.
db_1 | waiting for server to start....2020-05-09 17:03:43.126 UTC [34] LOG: starting PostgreSQL 12.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.2.0) 9.2.0, 64-bit
db_1 | 2020-05-09 17:03:43.127 UTC [34] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2020-05-09 17:03:43.141 UTC [35] LOG: database system was shut down at 2020-05-09 17:03:42 UTC
db_1 | 2020-05-09 17:03:43.144 UTC [34] LOG: database system is ready to accept connections
db_1 | done
db_1 | server started
db_1 |
db_1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
db_1 |
db_1 | waiting for server to shut down....2020-05-09 17:03:43.221 UTC [34] LOG: received fast shutdown request
db_1 | 2020-05-09 17:03:43.223 UTC [34] LOG: aborting any active transactions
db_1 | 2020-05-09 17:03:43.223 UTC [34] LOG: background worker "logical replication launcher" (PID 41) exited with exit code 1
db_1 | 2020-05-09 17:03:43.224 UTC [36] LOG: shutting down
db_1 | 2020-05-09 17:03:43.244 UTC [34] LOG: database system is shut down
db_1 | done
db_1 | server stopped
db_1 |
db_1 | PostgreSQL init process complete; ready for start up.
db_1 |
db_1 | 2020-05-09 17:03:43.328 UTC [1] LOG: starting PostgreSQL 12.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.2.0) 9.2.0, 64-bit
db_1 | 2020-05-09 17:03:43.328 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db_1 | 2020-05-09 17:03:43.328 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_1 | 2020-05-09 17:03:43.330 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2020-05-09 17:03:43.338 UTC [43] LOG: database system was shut down at 2020-05-09 17:03:43 UTC
db_1 | 2020-05-09 17:03:43.340 UTC [1] LOG: database system is ready to accept connections
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + id app
updater_1 | id: unknown user app
updater_1 | + addgroup -g 1000 app
updater_1 | + adduser -D -h /var/www/html -G app -u 1000 app
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
app_1 | waiting until db is ready...
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
updater_1 | waiting until db is ready...
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
updater_1 | db:5432 - no response
updater_1 | waiting until db is ready...
updater_1 | + echo waiting 'until' db is ready...
updater_1 | + sleep 3
app_1 | + pg_isready -h db -U postgres
app_1 | db:5432 - no response
app_1 | waiting until db is ready...
app_1 | + echo waiting 'until' db is ready...
app_1 | + sleep 3
updater_1 | + pg_isready -h db -U postgres
@MightyCreak
Copy link
Author

The db_1 log is a bit confusing, it is a mix of shutdown and ready for connections, so I don't know if it is what is expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment