-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
210 lines (190 loc) · 5 KB
/
docker-compose.yml
File metadata and controls
210 lines (190 loc) · 5 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
version: "3.9"
services:
postgresql:
image: "postgres:14-alpine"
container_name: postgres
env_file:
- /etc/envs/.env
volumes:
- ./data/postgresDB/init.sql:/docker-entrypoint-initdb.d/init.sql
# environment:
# - POSTGRES_USER=${POSTGRES_USER}
# - POSTGRES_DB=${POSTGRES_DB}
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
- bird-net
postgresql-ingest:
image: "postgres:14-alpine"
container_name: postgres-ingest
env_file:
- /etc/envs/.env
volumes:
- /etc/ai4birds-ingest-db/data:/var/lib/postgresql/data
- ./data/postgresIngestDB/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_USER=${POSTGRES_INGEST_USER}
- POSTGRES_DB=${POSTGRES_INGEST_DB}
- POSTGRES_PASSWORD=${POSTGRES_INGEST_PASSWORD}
networks:
- bird-net
postgresql-analysis:
image: "postgres:14-alpine"
container_name: postgres-analysis
env_file:
- /etc/envs/.env
volumes:
- /etc/ai4birds-analysis-db/data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${POSTGRES_ANALYSIS_USER}
- POSTGRES_DB=${POSTGRES_ANALYSIS_DB}
- POSTGRES_PASSWORD=${POSTGRES_ANALYSIS_PASSWORD}
networks:
- bird-net
frontend:
build: ./ia4birds-all/ai4birds-web/ai4birds-web-app-frontend
container_name: frontend
ports:
- 80:5173
- 8080:8080
- 443:443
env_file:
- /etc/envs/.env
networks:
- bird-net
backend:
build: ./ia4birds-all/ai4birds-web/ai4birds-web-app-backend
container_name: backend
env_file:
- /etc/envs/.env
volumes:
- /etc/letsencrypt/archive/ia4birds-platform.air-institute.com:/etc/letsencrypt/archive/ia4birds-platform.air-institute.com
- ./hls-stream:/home/node/app/hls-stream
ports:
- 5030:3030
depends_on:
- postgresql
- redis
networks:
- bird-net
ai4birds-ai-service:
build: ./ia4birds-all/ai4birds-ai-service
container_name: ai4birds-ai
ports:
- 5000:5000
networks:
- bird-net
ai4birds-coordinate-service:
build: ./ia4birds-all/ai4birds-coordinate-service
container_name: ai4birds-coordinate
env_file:
- /etc/envs/.env
ports:
- 5001:5000
networks:
- bird-net
ai4birds-ingest-service:
build: ./ia4birds-all/ai4birds-ingest-service
container_name: ai4birds-ingest
mem_limit: 6g
memswap_limit: 6g
env_file:
- /etc/envs/.env
volumes:
- /home/bisite/exclusion_eolica.csv:/home/exclusion_eolica.csv
- ./ia4birds-all/ai4birds-ingest-service/ai4birds_ingest_service/heatmaps:/app/ai4birds_ingest_service/heatmaps
ports:
- 5002:5000
networks:
- bird-net
redis:
image: redis:6.2-alpine
container_name: redis
env_file:
- /etc/envs/.env
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass "${REDIS_PASSWORD}"
volumes:
- cache:/data
networks:
- bird-net
- redis-net
redis-commander:
image: rediscommander/redis-commander:latest
container_name: redis-commander
env_file:
- /etc/envs/.env
environment:
REDIS_HOSTS: redis
REDIS_HOST: redis
REDIS_PORT: redis:6379
REDIS_PASSWORD: ${REDIS_PASSWORD}
HTTP_USER: ${REDIS_COMMANDER_USER}
HTTP_PASSWORD: ${REDIS_COMMANDER_PASSWORD}
ports:
- 8081:8081
depends_on:
- redis
networks:
- redis-net
mediamtx:
build: ./mediamtx-custom
container_name: mediamtx
ports:
- "8554:8554"
- "9997:9997"
- "8888:8888"
- "8889:8889"
- "8890:8890/udp"
- "8189:8189"
volumes:
- camara-config:/app/config
networks:
- bird-net
mosquitto:
image: eclipse-mosquitto
ports:
- ${MQTT_PORTS}
volumes:
- ${MQTT_CONFIG_VOLUME}
- ${MQTT_DATA_VOLUME}
- ${MQTT_LOG_VOLUME}
env_file:
- /etc/envs/.env
networks:
- bird-net
celery-worker:
build: ./ia4birds-all/ai4birds-ingest-service
container_name: celery-worker
command: celery -A ai4birds_celery.app worker --loglevel=info
env_file:
- /etc/envs/.env
depends_on:
- ai4birds-ingest-service
- redis
networks:
- redis-net
- bird-net
celery-beat:
build: ./ia4birds-all/ai4birds-ingest-service
container_name: celery-beat
command: celery -A ai4birds_celery.app beat --loglevel=info
env_file:
- /etc/envs/.env
depends_on:
- ai4birds-ingest-service
- celery-worker
networks:
- redis-net
- bird-net
networks:
bird-net:
driver: bridge
redis-net:
driver: bridge
volumes:
ia4birds_videos_data:
external: true
cache:
driver: local
camara-config: