Docker
Docker Compose is the recommended method to run Kekkai in production. Below are the steps to deploy Kekkai with Docker Compose.
Kekkai requires Docker Compose version 2.x.
-
Preparing files
git clone https://github.com/redume/Kekkaicd Kekkai -
Change config files
In .env, you need to specify your domain or ipv4 address
.env DOMAIN=example.comWrite the path to your certificates in the .env config file.
.env SSL_CERT=/etc/nginx/ssl/privkey.pemSSL_CERT_KEY=/etc/nginx/ssl/privkey.pemconfig.sample.yaml database:user: 'DATABASE_USERNAME'password: 'DATABASE_PASSWORD'host: 'DATABASE_HOST'name: 'DATABASE_NAME'port: 5432...Fill in the data in the database item, as well as in the .env config
.env.sample # Connection secret for postgres. You should change it to a random password# Please use only the characters `A-Za-z0-9`, without special characters or spacesPOSTGRES_PASSWORD=my_password# If you do not know what you are doing, then you should not edit the values below###################################################################################POSTGRES_DB=kekkaiDB_HOST=postgresPOSTGRES_USER=postgres- Populate custom database information if necessary.
- Consider changing
DB_PASSWORDto a custom value. Postgres is not publically exposed, so this password is only used for - local authentication. To avoid issues with Docker parsing this value, it is best to use only the charactersA-Za-z0-9.
-
Start the containers
Terminal window docker compose up -d