Added Send mail functionality & Dockerized application #1

Merged
PeterSurda merged 11 commits from cis-kuldeep/influx-smtp-gateway:master into master 2022-02-21 07:41:14 +01:00
3 changed files with 4 additions and 6 deletions
Showing only changes of commit 65bedd6356 - Show all commits

View File

@ -15,3 +15,4 @@ RUN pip install -r requirements.txt
# copy project
COPY . .
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]

View File

@ -4,12 +4,7 @@ services:
web:
build: .
command: python main.py
volumes:
- mailsend_server:/usr/src/app/
ports:
- 8081:8081
env_file:
- ./config.ini
volumes:
mailsend_server:

2
entrypoint.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
python main.py