-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (31 loc) · 838 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (31 loc) · 838 Bytes
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
version: '3.8'
services:
# Base de datos Relacional para usuarios, proyectos y tareas
postgres-db:
image: postgres:15-alpine
container_name: devtrack_postgres
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: rootpassword
POSTGRES_DB: devtrack_db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
# Base de datos NoSQL para el sistema de métricas y logs
mongo-db:
image: mongo:6.0
container_name: devtrack_mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
# Definimos los volúmenes para que la información persista entre reinicios
volumes:
postgres_data:
mongo_data: