-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
72 lines (65 loc) · 2.05 KB
/
docker-compose.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.9"
services:
steedos:
image: ecr.aws.steedos.cn/dockerhub/steedos/steedos-community:2.5.6
ports:
- "5000:5000"
env_file:
- .env.local
environment:
- PORT=5000
- MONGO_URL=mongodb://mongodb:27017/steedos
- MONGO_OPLOG_URL=mongodb://mongodb:27017/local
- TRANSPORTER=nats://nats:4222
- CACHER=redis://redis:6379
# - STEEDOS_IDENTITY_OIDC_ENABLED=true
# - STEEDOS_IDENTITY_OIDC_CONFIG_URL=https://id.steedos.cn/realms/master/.well-known/openid-configuration
# - STEEDOS_IDENTITY_OIDC_CLIENT_ID=steedos-oidc-public
# - STEEDOS_IDENTITY_OIDC_CLIENT_SECRET=none
# - STEEDOS_IDENTITY_OIDC_NAME=Steedos ID
volumes:
- "steedos-installed-packages:/app/.steedos"
- "steedos-data:/app/storage"
# 使用 docker 启动项目中的软件包
- "./steedos-packages:/app/steedos-packages"
depends_on:
mongodb:
condition: service_healthy
redis:
image: ecr.aws.steedos.cn/dockerhub/redis:6.2
command: "redis-server --save \"\" --appendonly no --loglevel warning"
ports:
- "6379:6379"
mongodb:
image: ecr.aws.steedos.cn/dockerhub/mongo:4.4
ports:
- 27017:27017
command: "--bind_ip_all --replSet steedos --logpath /var/log/mongodb/mongod.log"
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo --quiet | grep 1
interval: 10s
timeout: 10s
retries: 5
volumes:
- 'steedos-mongo-data:/data/db'
mongodb-init:
image: ecr.aws.steedos.cn/dockerhub/mongo:4.4
restart: "no"
depends_on:
mongodb:
condition: service_healthy
command: >
mongo --host mongodb:27017 --eval "rs.initiate({ _id: 'steedos', members: [{_id: 0, host: 'mongodb:27017'}]})"
# Micro Service Transporter
nats:
image: ecr.aws.steedos.cn/dockerhub/steedos/nats:2.9
ports:
- "4222:4222"
# - "8222:8222" # monitor port
volumes:
steedos-mongo-data:
driver: local
steedos-installed-packages:
driver: local
steedos-data:
driver: local