Skip to content

Commit

Permalink
upgrade template @2.1.33
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 23, 2021
1 parent 8c56d32 commit 563087e
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 11 deletions.
16 changes: 8 additions & 8 deletions packages/create-steedos-app/templates/default/_package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steedos/steedos-project-template",
"version": "2.1.32",
"version": "2.1.33",
"private": false,
"repository": "https://github.com/steedos/steedos-project-template.git",
"description": "",
Expand All @@ -27,13 +27,13 @@
"author": "",
"license": "ISC",
"dependencies": {
"@steedos/service-charts": "2.1.32",
"@steedos/service-metadata-server": "2.1.32",
"@steedos/service-mongodb-server": "2.1.32",
"@steedos/service-package-loader": "2.1.32",
"@steedos/service-package-registry": "2.1.32",
"@steedos/service-pages": "2.1.32",
"@steedos/service-steedos-server": "2.1.32",
"@steedos/service-charts": "2.1.33",
"@steedos/service-metadata-server": "2.1.33",
"@steedos/service-mongodb-server": "2.1.33",
"@steedos/service-package-loader": "2.1.33",
"@steedos/service-package-registry": "2.1.33",
"@steedos/service-pages": "2.1.33",
"@steedos/service-steedos-server": "2.1.33",
"aliyun-sdk": "1.12.3",
"async-retry": "^1.3.1",
"aws-sdk": "2.0.23",
Expand Down
40 changes: 38 additions & 2 deletions packages/create-steedos-app/templates/default/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,17 @@ services:
- "5000:5000"
volumes:
- "./storage:/app/storage"
- "./.env.local:/app/.env.local"
- "./.steedos:/app/.steedos"
environment:
- ROOT_URL=http://localhost:5000
- MONGO_URL=mongodb://mongo:27018/steedos
- STEEDOS_CFS_STORE=local
- STEEDOS_STORAGE_DIR=/app/storage
- TRANSPORTER=redis://redis:6389
- CACHER=redis://redis:6389/2
depends_on:
- redis
- mongo

redis:
image: redis:6.2.4
Expand All @@ -20,4 +28,32 @@ services:
- "./docker-volumes/redis/data:/data"
command: ["/bin/sh","-c", "redis-server --save \"\" --appendonly no"]
ports:
- "6389:6379"
- "6389:6379"

mongo:
image: mongo:4.2
restart: always
volumes:
- "./docker-volumes/mongo/data/db:/data/db"
command: mongod --oplogSize 128 --profile=1 --slowms=500 --replSet rs0 --bind_ip_all
ports:
- "27018:27017"

# this container's job is just run the command to initialize the replica set.
# it will run the command and remove himself (it will not stay running)
mongo-init-replica:
image: mongo:4.2
command: >
bash -c
"for i in `seq 1 30`; do
mongo mongo/steedos --eval \"
rs.initiate({
_id: 'rs0',
version: 1,
members: [ { _id: 0, host: 'mongo:27017' } ]})\" &&
s=$$? && break || s=$$?;
echo \"Tried $$i times. Waiting 5 secs...\";
sleep 5;
done; (exit $$s)"
depends_on:
- mongo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "steedos-app-default",
"version": "2.1.32",
"version": "2.1.33",
"description": "A Steedos App",
"main": "package.service.js",
"license": "MIT",
Expand Down

0 comments on commit 563087e

Please sign in to comment.