Sign inSign up

skyrabot/grpc

By skyrabot

Updated about 5 years ago

GRPC Microservice to interact with Skyra Database

Image
0

1.3K

skyrabot/grpc repository overview

Skyra Logo

Skyra Project Grpc

GRPC Microservice to interact with Skyra Database

Discord


Table of Contents


Quick reference

How to use this image

Setting up a Docker Compose file
version: '2.4'
services:
    grpc:
        image: skyrabot/grpc:latest
        container_name: 'skyra-grpc'
        depends_on:
            - postgres
        environment:
            - POSTGRES_HOST=postgres
        ports:
            - '8291:80'
    postgres:
        container_name: postgres
        image: skyrabot/postgres:latest
        restart: always
        ports:
            - '5432:5432'
        volumes:
            - postgres-data:/var/lib/postgresql/data

Try in PWD

Using custom configuration

Both the GRPC and PostgreSQL images use several environment variables that you can configure.

POSTGRES_PASSWORD

This optional environment variable is used for the $POSTGRES_USER to connect to the database. If it is not specified, then the default password of postgres will be used.

POSTGRES_USER

This optional environment variable is used in conjunction with POSTGRES_PASSWORD to set a user and its password. This variable will create the specified user with superuser power and a database with the same name. If it is not specified, then the default user of postgres will be used.

POSTGRES_DB

This optional environment variable can be used to define a different name for the default database that is created when the image is first started. If it is not specified, then the value of skyra will be used.

POSTGRES_HOST

This optional environment variable is only for the skyrabot/grpc image and can be used to define a different host for the where the database runs relative to the GRPC serivce. If it is not specified, then the value of localhost will be used.

POSTGRES_PORT

This optional environment variable is only for the skyrabot/grpc image and can be used to define a different port for the where the database runs relative to the GRPC serivce. If it is not specified, then the value of 5432 will be used.

Buy us some doughnuts

Skyra Project is open source and always will be, even if we don't get donations. That said, we know there are amazing people who may still want to donate just to show their appreciation. Thanks you very much in advance!

We accept donations through Patreon, BitCoin, Ethereum, and Litecoin. You can use the buttons below to donate through your method of choice.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

Tag summary

Content type

Image

Digest

Size

98.6 MB

Last updated

about 5 years ago

docker pull skyrabot/grpc