Added Send mail functionality & Dockerized application #1
|
@ -15,3 +15,4 @@ RUN pip install -r requirements.txt
|
||||||
|
|
||||||
# copy project
|
# copy project
|
||||||
COPY . .
|
COPY . .
|
||||||
PeterSurda marked this conversation as resolved
Outdated
|
|||||||
|
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
|
||||||
PeterSurda marked this conversation as resolved
Outdated
PeterSurda
commented
run as non-root run as non-root
PeterSurda
commented
this doesn't do anything. The this doesn't do anything. The `Dockerfile` should create a non-privileged user and then just before `ENTRYPOINT` have a corresponding `USER` instruction.
|
|
@ -4,12 +4,7 @@ services:
|
||||||
web:
|
web:
|
||||||
PeterSurda marked this conversation as resolved
Outdated
PeterSurda
commented
`smtp-gateway:`
|
|||||||
build: .
|
build: .
|
||||||
command: python main.py
|
command: python main.py
|
||||||
PeterSurda marked this conversation as resolved
Outdated
PeterSurda
commented
perhaps this should be inside the perhaps this should be inside the `Dockerfile`
|
|||||||
volumes:
|
|
||||||
- mailsend_server:/usr/src/app/
|
|
||||||
ports:
|
ports:
|
||||||
PeterSurda marked this conversation as resolved
Outdated
PeterSurda
commented
If we only use this internally inside a docker service, we should use If we only use this internally inside a docker service, we should use `expose`, not `port`.
|
|||||||
- 8081:8081
|
- 8081:8081
|
||||||
env_file:
|
env_file:
|
||||||
- ./config.ini
|
- ./config.ini
|
||||||
PeterSurda marked this conversation as resolved
Outdated
PeterSurda
commented
wrong file wrong file
|
|||||||
|
|
||||||
volumes:
|
|
||||||
mailsend_server:
|
|
2
entrypoint.sh
Executable file
2
entrypoint.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
python main.py
|
Loading…
Reference in New Issue
Block a user
let's call it something else