V0.6.1 Arroyo Toad

This commit is contained in:
Christian Risi 2024-12-16 09:26:20 +01:00
parent 3bcf381689
commit edf3b4910c
7 changed files with 41 additions and 14 deletions

View File

@ -4,4 +4,5 @@ apt install \
git \ git \
sqlite3 \ sqlite3 \
npm \ npm \
iputils-ping \
-y -y

0
.environment/.gitkeep Normal file
View File

View File

@ -0,0 +1,3 @@
POSTGRES_PASSWORD=abcdefg1234
POSTGRES_USER=Admin
POSTGRES_DB=SAPD

6
.gitignore vendored
View File

@ -5,7 +5,8 @@
.LSOverride .LSOverride
# Icon must end with two \r # Icon must end with two \r
Icon Icon
# Thumbnails # Thumbnails
._* ._*
@ -134,6 +135,9 @@ web_modules/
.env.production.local .env.production.local
.env.local .env.local
# Custom dotenv
*.env
# parcel-bundler cache (https://parceljs.org/) # parcel-bundler cache (https://parceljs.org/)
.cache .cache
.parcel-cache .parcel-cache

7
.gitmodules vendored
View File

@ -1,6 +1,3 @@
[submodule "IoT-Simulator"]
path = IoT-Simulator
url = https://repositories.communitynotfound.work/PoliBa-Software-Architecture/IoT-Simulator.git
[submodule "Leader-Service"] [submodule "Leader-Service"]
path = Leader-Service path = Leader-Service
url = https://repositories.communitynotfound.work/PoliBa-Software-Architecture/Leader-Service.git url = https://repositories.communitynotfound.work/PoliBa-Software-Architecture/Leader-Service.git
@ -10,3 +7,7 @@
[submodule "PublicKey-Backend"] [submodule "PublicKey-Backend"]
path = PublicKey-Backend path = PublicKey-Backend
url = https://repositories.communitynotfound.work/PoliBa-Software-Architecture/PublicKey-Backend.git url = https://repositories.communitynotfound.work/PoliBa-Software-Architecture/PublicKey-Backend.git
[submodule "IoT-Simulator"]
path = IoT-Simulator
url = https://repositories.communitynotfound.work/PoliBa-Software-Architecture/IoT-Simulator.git

@ -1 +1 @@
Subproject commit d44865db427d26b9af8702238e649b93bea7a841 Subproject commit c47eea3826821ac34eafe9cfa58df6edef0d5c4d

View File

@ -11,18 +11,20 @@ services:
command: sleep infinity command: sleep infinity
leader-service: leader-service:
build: env_file:
- .environment/.leader.env
build:
context: . context: .
dockerfile: .devcontainer/DOCKERFILES/deno.dockerfile dockerfile: .devcontainer/DOCKERFILES/deno.dockerfile
volumes: volumes:
- .:/workspace - .:/workspace
hostname: leader-service.internal hostname: iot-data-backend.internal
networks: networks:
iot-network: iot-network:
command: sleep infinity command: sleep infinity
publickey-backend: publickey-backend:
build: build:
context: . context: .
dockerfile: .devcontainer/DOCKERFILES/deno.dockerfile dockerfile: .devcontainer/DOCKERFILES/deno.dockerfile
volumes: volumes:
@ -31,7 +33,28 @@ services:
networks: networks:
iot-network: iot-network:
command: sleep infinity command: sleep infinity
postgres-data-backend:
image: postgres
env_file:
- .environment/.postgres.env
volumes:
- pg-data:/var/lib/postgresql/data
hostname: iot-data-db.internal
networks:
iot-network:
pg-admin:
image: dpage/pgadmin4
env_file:
- .environment/.pgadmin.env
networks:
iot-network:
ports:
- 8080:80
volumes:
pg-data:
networks: networks:
iot-network: iot-network:
@ -39,8 +62,3 @@ networks:
config: config:
- subnet: 10.0.0.0/8 - subnet: 10.0.0.0/8
ip_range: 10.0.0.0/16 ip_range: 10.0.0.0/16