I'm attempting to add CodiMD to HomelabOS, and when I spin up the containers the app is never able to access the database.
The following details reflect my latest testing, with Mariadb. The same issue happened with Postgres. Here's the Docker-compose yml
2020-05-07 03:29:37+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.12+maria~bionic started.,
2020-05-07 03:29:38+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql',
2020-05-07 03:29:38+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.12+maria~bionic started.,
2020-05-07 3:29:38 0 [Note] mysqld (mysqld 10.4.12-MariaDB-1:10.4.12+maria~bionic) starting as process 1 ...,
2020-05-07 3:29:38 0 [Note] InnoDB: Using Linux native AIO,
2020-05-07 3:29:38 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins,
2020-05-07 3:29:38 0 [Note] InnoDB: Uses event mutexes,
2020-05-07 3:29:38 0 [Note] InnoDB: Compressed tables use zlib 1.2.11,
2020-05-07 3:29:38 0 [Note] InnoDB: Number of pools: 1,
2020-05-07 3:29:38 0 [Note] InnoDB: Using SSE2 crc32 instructions,
2020-05-07 3:29:38 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts),
2020-05-07 3:29:38 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M,
2020-05-07 3:29:39 0 [Note] InnoDB: Completed initialization of buffer pool,
2020-05-07 3:29:39 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().,
2020-05-07 3:29:39 0 [Note] InnoDB: 128 out of 128 rollback segments are active.,
2020-05-07 3:29:39 0 [Note] InnoDB: Creating shared tablespace for temporary tables,
2020-05-07 3:29:39 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...,
2020-05-07 3:29:39 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.,
2020-05-07 3:29:39 0 [Note] InnoDB: 10.4.12 started; log sequence number 60990; transaction id 21,
2020-05-07 3:29:39 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool,
2020-05-07 3:29:39 0 [Note] Plugin 'FEEDBACK' is disabled.,
2020-05-07 3:29:39 0 [Note] Server socket created on IP: '::'.,
2020-05-07 3:29:39 0 [Warning] 'proxies_priv' entry '@% root@5ff5d1b80589' ignored in --skip-name-resolve mode.,
2020-05-07 3:29:39 0 [Note] Reading of all Master_info entries succeeded,
2020-05-07 3:29:39 0 [Note] Added new Master_info '' to hash table,
2020-05-07 3:29:39 0 [Note] mysqld: ready for connections.,
Version: '10.4.12-MariaDB-1:10.4.12+maria~bionic' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution,
2020-05-07 3:29:39 0 [Note] InnoDB: Buffer pool(s) load completed at 200507 3:29:39,
2020-05-07 3:29:39 8 [Warning] Aborted connection 8 to db: 'unconnected' user: 'unauthenticated' host: '172.18.0.42' (This connection closed normally without authentication),
app_1 | 2020/05/07 03:43:40 Waiting for: tcp://database:3306
app_1 | 2020/05/07 03:43:40 Problem with dial: dial tcp 172.18.0.8:3306: connect: connection refused. Sleeping 1s
app_1 | 2020/05/07 03:43:41 Connected to tcp://database:3306
app_1 |
app_1 | Sequelize CLI [Node: 12.16.2, CLI: 5.5.1, ORM: 5.21.4]
app_1 |
app_1 | Parsed url mariadb://hackmd:*****@database:3306/hackmd
app_1 | warning: please use IANA standard timezone format ('Etc/GMT0')
app_1 |
app_1 | ERROR: connect ECONNREFUSED 172.18.0.8:3306
app_1 |
app_1 | 2020-05-07T03:43:46.107Z warn: Neither 'domain' nor 'CMD_DOMAIN' is configured. This can cause issues with various components.
app_1 | Hint: Make sure 'protocolUseSSL' and 'urlAddPort' or 'CMD_PROTOCOL_USESSL' and 'CMD_URL_ADDPORT' are configured properly.
app_1 | 2020-05-07T03:43:46.111Z warn: PDF export was disabled for this release to mitigate a critical security issue. This feature will hopefully become available again in future releases.
app_1 | Thu, 07 May 2020 03:43:46 GMT hsts deprecated The "includeSubdomains" parameter is deprecated. Use "includeSubDomains" (with a capital D) instead. at app.js:85:18
app_1 | warning: please use IANA standard timezone format ('Etc/GMT0')
app_1 | warning: please use IANA standard timezone format ('Etc/GMT0')
app_1 | 2020-05-07T03:43:47.366Z info: HTTP Server listening at 0.0.0.0:3000