-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1.06 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
45
46
47
48
49
version: "3.9"
services:
mongodb:
image: teresaromero/palmer-mongodb:latest
build:
context: ./data
restart: always
ports:
- 27017:27017
environment:
- MONGO_DBNAME=${MONGO_DBNAME}
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ADMIN_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ADMIN_PASSWORD}
- MONGO_API_PASSWORD=${MONGO_API_PASSWORD}
- MONGO_API_USERNAME=${MONGO_API_USERNAME}
volumes:
- data:/mongodb
api:
image: teresaromero/palmer-api:latest
build:
context: ./api
restart: always
ports:
- 3000:3000
links:
- mongodb
environment:
- API_PORT=${API_PORT}
- FLASK_DEBUG=${FLASK_DEBUG}
- FLASK_ENV=${FLASK_ENV}
- MONGO_URI=${MONGO_URI}
volumes:
- ./api/src:/usr/app
streamlit:
image: teresaromero/palmer-streamlit:latest
build:
context: ./streamlit
restart: always
ports:
- 8501:8501
links:
- api
environment:
- API_URL=${API_URL}
volumes:
- ./streamlit:/usr/app
volumes:
data: