-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (74 loc) · 1.72 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
sisab_database:
build:
context: ./database
container_name: sisab_database
image: mongo:latest
ports:
- '27027:27017'
volumes:
- ./database/data:/data/db #pasta onde ficara os arquivos de dados do mongo: host_folder:docker_folder
- ./database/backup:/sisab/database/backup # pasta onde sera descarregado o backup inicial
environment:
MONGO_INITDB_DATABASE: sisab_v2
networks:
- app_network
sisab_backend:
build:
context: ./backend
container_name: sisab_backend
ports:
- '8010:8010'
networks:
- app_network
depends_on:
- sisab_database
- sisab_redis
environment:
API_SERVER: http://localhost:8010/api/v1
DATABASE_URL: mongodb://sisab_database:27017
DATABASE_NAME: sisab_v2
REDIS_URL: redis://sisab_redis:6380
sisab_dashboard:
build:
context: ./painel
container_name: sisab_dashboard
ports:
- '8020:8050'
networks:
- app_network
depends_on:
- sisab_backend
environment:
# API_URL: http://sisab_backend:8010/api/v1
SITE_URL: /health/primary-care/
sisab_redis:
build:
context: ./redis
image: redis:latest
container_name: sisab_redis
ports:
- '6380:6379'
networks:
- app_network
volumes:
- redis_data:/data
airflow:
build:
context: ./etl
container_name: airflow
ports:
- "8080:8080"
environment:
- AIRFLOW__CORE__LOAD_EXAMPLES=False
- AIRFLOW__CORE__EXECUTOR=SequentialExecutor
- AIRFLOW__WEBSERVER__WORKERS=1
networks:
- app_network
depends_on:
- sisab_database
networks:
app_network:
driver: bridge
volumes:
redis_data: