This folder contains all the files required to control Docker development environments for Skyra. Most of the meat of
the content is in the docker-compose.yml
file which has the info on which images can be build and as which containers
they would be ran. In order to easily control the docker-compose file there are powershell and bash scripts:
ps-skyra.ps1
and bash-skyra.sh
. You can call these scripts with yarn through yarn dockerps
and yarn dockerbash
respectively.
Skyra currently has the following microservices that can be dockerized:
- PostgreSQL Database
- Service name in docker-compose:
postgres
- Image used:
skyrabot/postgres:latest
- Service name in docker-compose:
- Lavalink
- Service name in docker-compose:
lavalink
- Image used:
skyrabot/lavalink:latest
- Service name in docker-compose:
- GraphQL-Pokémon
- Service name in docker-compose:
pokedex
- Image used:
favware/graphql-pokemon:latest
- Service name in docker-compose:
The following steps are required for each image for it to build on your machine. These images can run just fine without locally building, however for customization such as modifying the default password you need to build the image locally.
- Download the latest
.jar
file fromthe Lavalink CI server
- Drop this
.jar
file in thelavalink
folder - Duplicate the
application.example.yml
file and rename it toapplication.yml
- Set any password in the yaml file and also set the same password in
config.ts
in the src folder of this project
- Duplicate the
Dockerfile.example
file in thepostgres
folder and name itDockerfile
- Fill in your desired
POSTGRES_USER
,POSTGRES_PASSWORD
andPOSTGRES_DB