mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-22 00:01:52 +00:00
67 lines
1.5 KiB
YAML
67 lines
1.5 KiB
YAML
version: "3.9"
|
|
|
|
services:
|
|
|
|
steedos:
|
|
build:
|
|
context: ./
|
|
dockerfile: ./deploy/dev/Dockerfile
|
|
image: steedos/steedos-community:dev
|
|
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
|
|
volumes:
|
|
- "steedos-data:/app/storage"
|
|
depends_on:
|
|
mongodb:
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
image: redis:6.0
|
|
command: "redis-server --save \"\" --appendonly no --loglevel warning"
|
|
ports:
|
|
- "6379:6379"
|
|
|
|
mongodb:
|
|
image: 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: 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: 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 |