Page MenuHomePhabricator

[keyserver] Add MySQL config to docker-compose.yml
ClosedPublic

Authored by ashoat on May 23 2022, 7:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 10:44 PM
Unknown Object (File)
Thu, Nov 7, 8:47 PM
Unknown Object (File)
Mon, Oct 28, 3:03 AM
Unknown Object (File)
Mon, Oct 28, 2:49 AM
Unknown Object (File)
Sat, Oct 26, 8:17 PM
Unknown Object (File)
Sat, Oct 26, 8:16 PM
Unknown Object (File)
Oct 6 2024, 3:29 AM
Unknown Object (File)
Oct 5 2024, 1:42 AM

Details

Summary

Now that we can specify MySQL config via environmental variable, we are ready to set it up in Docker Compose.

Depends on D4102

Test Plan

I created a keyserver/.env file with the following contents:

COMM_MYSQL_HOST=database
COMM_MYSQL_DATABASE=comm2
COMM_MYSQL_USER=comm2
COMM_MYSQL_PASSWORD=pass2

Then I ran docker-compose down -v && docker-compose up --build. The keyserver still crashed because the database tables weren't created yet, but it was able to connect to MySQL.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable