-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathdocker-compose-db.yml
55 lines (51 loc) · 1.38 KB
/
docker-compose-db.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
services:
timescaledb:
image: timescale/timescaledb:latest-pg14
container_name: timescaledb
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=timescaledb
ports:
- "5432:5432"
volumes:
- timescale_data:/var/lib/postgresql/data
restart: unless-stopped
mongodb:
image: mongo:latest
container_name: mongodb
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
- MONGO_INITDB_DATABASE=quants_lab
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
restart: unless-stopped
networks:
- mongodb_network
mongo-compass:
image: mongo-express
container_name: mongo-compass
restart: always
ports:
- "28081:8081"
environment:
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_BASICAUTH_USERNAME: admin # Login username for Web UI
ME_CONFIG_BASICAUTH_PASSWORD: changeme # Login password for Web UI
ME_CONFIG_MONGODB_ADMINUSERNAME: admin # Database username
ME_CONFIG_MONGODB_ADMINPASSWORD: admin # Database password
ME_CONFIG_MONGODB_URL: mongodb://admin:admin@mongodb:27017/?authSource=admin
depends_on:
- mongodb
networks:
- mongodb_network
networks:
mongodb_network:
driver: bridge
volumes:
timescale_data:
mongodb_data: