Awkewainze / FriendBot

https://nova.walseth.me/FriendBot/
MIT License
1 stars 3 forks source link

Add Docker for redis #27

Closed jamesaspence closed 3 years ago

jamesaspence commented 3 years ago

Adds a docker-compose for the redis datastore. Also adds a .env file and .env.example, and reworks the config.ts file a bit.

Now, environment variables set all sensitive values (e.g. tokens), rather than config.json setting them. Because we needed to support a transform (in the case of plex), I created a separate plex.ts config file that combines the env variables and the transform config (which doesn't work very well in .env since it's an array of config objects).

You'll need docker installed w/ docker compose (comes by default). The idea is that this will make it easier to add new dependencies to the project (e.g. sqlite) - rather than having to install them manually, you can just install docker and it'll take care of the rest.

To test it locally, you can try: