Skip to content

Commit

Permalink
v1
Browse files Browse the repository at this point in the history
  • Loading branch information
rgfaber committed Mar 30, 2022
1 parent 7a3f265 commit ad8511d
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/spacedeck/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NODE_ENV=dev
9 changes: 9 additions & 0 deletions backend/spacedeck/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM local/spacedeck

COPY ./config/dev.json /app/config/dev.json

EXPOSE 9666

RUN ls -la /app

CMD ["node", "spacedeck.js"]
38 changes: 38 additions & 0 deletions backend/spacedeck/config/dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"team_name": "My Open Spacedeck",
"contact_email": "[email protected]",

"host": "::",
"port": 9666,
"endpoint": "http://localhost:9666",
"invite_code": "top-sekrit",

"storage_dialect": "sqlite",

"storage_host": "localhost",
"storage_database": "spacedeck",
"storage_username": "username",
"storage_password": "password",

"storage_local_path": "./storage",
"storage_local_db": "./database/database.sqlite",
"storage_region": "eu-central-1",
"storage_endpoint": "http://localhost:4572",
"storage_bucket": "my_spacedeck_bucket",
"storage_cdn": "/storage",

"mongodb_host": "localhost",
"redis_mock": true,
"redis_host": "localhost",

"export_api_secret": "very_secret_export_password",

"mail_provider": "smtp",
"mail_smtp_host": "your.smtp.host",
"mail_smtp_port": 465,
"mail_smtp_secure": true,
"mail_smtp_require_tls": true,
"mail_smtp_user": "your.smtp.user",
"mail_smtp_pass": "your.secret.smtp.password",
"spacedeck": {}
}
11 changes: 11 additions & 0 deletions run-minimal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ sudo mkdir -p /volume/nats/stream01
# POSTGRESQL
sudo mkdir -p /volume/postgres/data

# SPACEDECK
sudo mkdir -p /volume/spacedeck/storage
sudo mkdir -p /volume/spacedeck/db




sudo chown $USER -R /volume/
# sudo chown 1001 -R /volume/mongodb # https://hub.docker.com/_/mongo

Expand All @@ -50,6 +57,8 @@ docker-compose -f couchdb.yml \
-f redis.yml \
-f rabbitmq.yml \
-f postgresql.yml \
-f mongodb.yml \
-f spacedeck.yml \
-f networks.yml \
down

Expand All @@ -59,6 +68,8 @@ docker-compose -f couchdb.yml \
-f redis.yml \
-f rabbitmq.yml \
-f postgresql.yml \
-f mongodb.yml \
-f spacedeck.yml \
-f networks.yml \
up --build $1

34 changes: 34 additions & 0 deletions spacedeck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: '3.5'

services:
spacedeck:
image: local/sd-open
build:
context: ./backend/spacedeck
env_file:
- ./backend/spacedeck/.env
container_name: spacedeck
hostname: spacedeck
ports:
- "9666:9666"
networks:
- dev-net
volumes:
- spacedeck-storage:/app/storage
- spacedeck-db:/app/database


volumes:
spacedeck-storage:
driver: local
driver_opts:
type: none
device: /volume/spacedeck/storage
o: bind

spacedeck-db:
driver: local
driver_opts:
type: none
device: /volume/spacedeck/db
o: bind

0 comments on commit ad8511d

Please sign in to comment.