๐ณ Deploy with Docker
This article will help you to deploy your notification service with docker.
๐๏ธ Preparation#
Make sure that you ...
- have have Docker and Docker Compose installed.
- have a
.envfile from these steps.
๐ Deploy your container#
- Create a new folder and copy/paste your
.envfile here. This folder will store any data that needs to be persistent like the database. - In this folder, create a file named
docker-compose.ymlwith the following content:
- Open the command line, navigate to your new created folder and enter the command
docker-compose up -d.
note
The compose file currently uses the next tagged docker image that is based on the main branch but maybe unstable. After the first release of version 2, you can change this to tjarbo/notification-service:latest.
โ Done!#
That's it! You have successfully deployed your own notification service.
info
If you plan to make the notification service public accessible, please be aware that the notification service is not managing any ssl certificates! You can use applications like the Secure Web Application Gateway by LinuxServer.io or the NGINX Proxy Manger, but we are unable to provide any help in this case!
๐ Access logs#
Use the following command to access the logs: docker-compose logs --timestamps notification-service.