contact-mailer/test/docker-compose.yml

39 lines
924 B
YAML

version: '3'
services:
db:
image: mongo
mailer:
build: ../server
volumes:
- ../server/main.py:/usr/src/app/main.py
- ./uwsgi:/tmp/uwsgi
depends_on:
- db
environment:
MONGODB_HOST: db
SMTP_SERVER_ADDRESS: toto.mail
SMTP_SERVER_PORT: 994
SMTP_SERVER_USERNAME: toto@toto.mail
SMTP_SERVER_PASSWORD: password
SMTP_SERVER_SENDER: toto@toto.mail
ADMIN_PASSWORD: test
SMTP_SSL: 'true'
UID: 101
MOUNT: /api
do_not_send: 'true'
proxy:
image: nginx
ports:
- 8080:8080
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ../:/usr/app
- ./uwsgi:/tmp/uwsgi
environment:
nginx_uid: 1000
depends_on:
- mailer