steedos-platform/docker-compose.yml

67 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2023-03-15 07:18:52 +00:00
version: "3.9"
2021-07-08 08:44:10 +00:00
services:
2023-03-15 07:18:52 +00:00
2023-09-19 06:42:48 +00:00
steedos:
build:
context: ./
2023-09-25 08:51:20 +00:00
dockerfile: ./deploy/dev/Dockerfile
2023-09-19 09:46:53 +00:00
image: steedos/steedos-community:dev
2021-07-08 08:44:10 +00:00
ports:
- "5000:5000"
2023-09-19 06:42:48 +00:00
env_file:
- .env.local
environment:
- PORT=5000
2023-03-15 07:18:52 +00:00
- MONGO_URL=mongodb://mongodb:27017/steedos
- MONGO_OPLOG_URL=mongodb://mongodb:27017/local
2023-09-19 06:42:48 +00:00
- TRANSPORTER=nats://nats:4222
2023-03-15 07:18:52 +00:00
- CACHER=redis://redis:6379
volumes:
2023-09-19 06:42:48 +00:00
- "steedos-data:/app/storage"
depends_on:
mongodb:
condition: service_healthy
redis:
2023-09-19 06:42:48 +00:00
image: redis:6.0
command: "redis-server --save \"\" --appendonly no --loglevel warning"
ports:
2023-03-15 07:18:52 +00:00
- "6379:6379"
mongodb:
image: mongo:4.4
2021-07-08 08:44:10 +00:00
ports:
2023-03-15 07:18:52 +00:00
- 27017:27017
2023-09-19 06:42:48 +00:00
command: "--bind_ip_all --replSet steedos --logpath /var/log/mongodb/mongod.log"
2023-03-15 07:18:52 +00:00
healthcheck:
2023-03-17 04:38:04 +00:00
test: echo 'db.runCommand("ping").ok' | mongo --quiet | grep 1
2023-03-15 07:18:52 +00:00
interval: 10s
timeout: 10s
retries: 5
volumes:
- 'steedos-mongo-data:/data/db'
2021-07-08 08:44:10 +00:00
2023-03-17 04:38:04 +00:00
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'}]})"
2023-09-19 06:42:48 +00:00
# Micro Service Transporter
nats:
image: nats:2.9
ports:
- "4222:4222"
# - "8222:8222" # monitor port
2023-03-17 04:38:04 +00:00
2023-03-15 07:18:52 +00:00
volumes:
steedos-mongo-data:
2023-09-19 06:42:48 +00:00
driver: local
steedos-installed-packages:
driver: local
steedos-data:
2023-03-15 07:18:52 +00:00
driver: local