Compose test

This commit is contained in:
Adrian Amaglio 2020-08-24 21:32:28 +02:00
parent ea8490747f
commit b58e8c188b

25
test/docker-compose.yml Normal file
View File

@ -0,0 +1,25 @@
version: '3'
services:
db:
image: mongo
mailer:
build: ..
volumes:
- ../main.py:/usr/src/app/main.py
- ./uwsgi:/tmp/uwsgi
depends_on:
- db
environment:
MONGODB_HOST: db
SMTP_SERVER_ADDRESS: 'lol'
SMTP_SERVER_PORT: 994
SMTP_SERVER_USERNAME: toto
SMTP_SERVER_PASSWORD: lol
SMTP_SERVER_SENDER: moi
ADMIN_PASSWORD: admin
SMTP_SSL: 'true'
proxy:
image: nginx
ports:
- 8080:8080