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)
Tue, Dec 10, 11:29 AM
Unknown Object (File)
Mon, Dec 9, 5:11 PM
Unknown Object (File)
Fri, Nov 22, 4:38 PM
Unknown Object (File)
Fri, Nov 22, 4:21 PM
Unknown Object (File)
Nov 8 2024, 10:44 PM
Unknown Object (File)
Nov 7 2024, 8:47 PM
Unknown Object (File)
Oct 28 2024, 3:03 AM
Unknown Object (File)
Oct 28 2024, 2:49 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