-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (55 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
60 lines (55 loc) · 1.42 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
name: tradenote
services:
mongo:
image: mongo:latest
container_name: tradenote_db
restart: always
volumes:
- tradenote_db:/data/db
ports:
- 27017:27017
command: ["mongod", "--wiredTigerCacheSizeGB", "0.25"] # Limit WiredTiger cache to 256 MB (0.25 GB)
environment:
MONGO_INITDB_ROOT_USERNAME: tn
MONGO_INITDB_ROOT_PASSWORD: tn
MONGO_INITDB_DATABASE: tradenote
networks:
- tradenote_net
tradenote:
image: ghcr.io/gitricko/tradenote:893761408fcb5d6eaeedfa34c6ebe34b03e18b97
container_name: tradenote_app
restart: always
ports:
- 8080:8080
environment:
MONGO_URI: mongodb://tn:tn@mongo:27017/tradenote?authSource=admin
TRADENOTE_DATABASE: tradenote
APP_ID: 123456
MASTER_KEY: 123456
TRADENOTE_PORT: 8080
depends_on:
- mongo
networks:
- tradenote_net
mongoexpress:
image: mongo-express
container_name: mongo-express_app
profiles: ["mongo-express"]
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_URL: mongodb://tn:tn@mongo:27017/tradenote?authSource=admin&ssl=false
ME_CONFIG_BASICAUTH_ENABLED: 'true'
ME_CONFIG_BASICAUTH_USERNAME: tn
ME_CONFIG_BASICAUTH_PASSWORD: tn
PORT: 8081
depends_on:
- mongo
networks:
- tradenote_net
networks:
tradenote_net:
driver: bridge
volumes:
tradenote_db:
name: tradenote_db