-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (40 loc) · 1.08 KB
/
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
43
44
version: '3.8'
services:
api-service:
build:
dockerfile: Dockerfile
context: .
container_name: flask
command: pipenv run python api.py
volumes:
- './app/:/app/'
environment:
PORT: 5000
MONGODB_DATABASE: cache
MONGODB_HOSTNAME: mongodb
MONGODB_PORT: 27017
LATEST_WEATHERS_DEFAULT_MAX: 5
CACHED_WEATHERS_EXPIRATION_TIME: 300
OPEN_WEATHER_ENDPOINT:
http://api.openweathermap.org/data/2.5/weather
OPEN_WEATHER_API_KEY: 09d9c578d13c2303e83f7b7f94f12d3f
networks:
- backend
db-service:
image: mongo
container_name: mongodb
volumes:
- 'mongodbdata:/data/db'
environment:
PORT: 27017
MONGO_INITDB_DATABASE: cache
MONGODB_DATA_DIR: /data/db
MONDODB_LOG_DIR: /dev/null
networks:
- backend
networks:
backend:
driver: bridge
volumes:
mongodbdata:
driver: local