-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
63 lines (57 loc) · 1.27 KB
/
docker-compose.yaml
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
# Use root/example as user/password credentials
version: '3.7'
services:
# tonet-core:
# build:
# context: .
# target: development
# image: tonet-core
# container_name: tonet-core
# networks:
# - core
# restart: always
# ports:
# - "1313:1313"
# depends_on:
# - "mongodb"
# - "minio"
mongodb:
image: mongo:7.0 # 7.0 for production 4.4.6 for vm
restart: always
container_name: mongodb-tonet
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports:
- 27017:27017
networks:
- core
volumes:
- mongodb_data_tonet:/data/db
minio:
image: 'quay.io/minio/minio:RELEASE.2024-02-17T01-15-57Z'
container_name: minio-tonet
ports:
- '9000:9000'
- '9001:9001'
environment:
- MINIO_ROOT_USER=minio-root-user
- MINIO_ROOT_PASSWORD=minio-root-password
volumes:
- data1-1:/data1
- data1-2:/data2
healthcheck:
test: [ "CMD", "mc", "ready", "local" ]
interval: 5s
timeout: 5s
retries: 5
networks:
- core
command: server --console-address ":9001" http://minio/data{1...2}
volumes:
mongodb_data_tonet:
data1-1:
data1-2:
networks:
core:
driver: "bridge"