๐ณ Deploy with Docker
This article will help you to deploy your notification service with docker.
#
๐๏ธ PreparationMake sure that you ...
- have have Docker and Docker Compose installed.
- have a
.env
file from these steps.
#
๐ Deploy your container- Create a new folder and copy/paste your
.env
file here. This folder will store any data that needs to be persistent like the database. - In this folder, create a file named
docker-compose.yml
with 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 logsUse the following command to access the logs: docker-compose logs --timestamps notification-service
.