-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1006 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '2'
services:
mongodb:
image: mongo:latest
container_name: "mongodb"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- ./data/db:/data/db
ports:
- 27017:27017
command: mongod --smallfiles --logpath=/dev/null
notification-app:
container_name: notificationapp
build:
context: .
dockerfile: .
depends_on:
- mongodb
environment:
- SERVICE_LOG_LEVEL=INFO
- SESPASSWORD=########
- SESHOST=email-smtp.eu-west-1.amazonaws.com
- SESPORT=465
- SESUSER=############
- SESFROM=noreply@mail.es
- SESSENDER=MyNotificationAPP
- SESTLS=true
- AWS_DEFAULT_REGION=eu-west-1
- AWS_SDK_LOAD_CONFIG=1
- AWS_ACCESS_KEY_ID=##########
- AWS_SECRET_ACCESS_KEY=#########
#- MONGODBUSER=mongodbuser
- MONGODB=goNotificationApp
- MONGODBHOST=mongodb
- MONGODBCOLLECTION=notifications
ports:
- 8080:8080