auto-start containere, afisare observatii la fisa utilizator

This commit is contained in:
2026-09-21 10:07:48 +03:00
parent 19c906d97b
commit 31e1ebfd2f
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -1,6 +1,7 @@
services:
db:
image: postgres:16
restart: unless-stopped
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
@@ -10,6 +11,7 @@ services:
pgadmin:
image: dpage/pgadmin4
restart: unless-stopped
environment:
- PGADMIN_DEFAULT_EMAIL=catalin@x3c.ro
- PGADMIN_DEFAULT_PASSWORD=CFratxlTiJ0TB
@@ -20,6 +22,7 @@ services:
web:
build: .
restart: unless-stopped
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/app
@@ -57,6 +57,7 @@
<span style="font-size: 0.9em;">
<strong>Procesor:</strong> {{ pc.cpu }} | <strong>Placă de bază:</strong> {{ pc.motherboard }} | <strong>RAM:</strong> {{ pc.ram }} | <strong>Stocare:</strong> {{ pc.storage }} {% if pc.optical_drive %}| <strong>Optic:</strong> {{ pc.optical_drive }}{% endif %}<br>
<strong>MAC:</strong> {{ pc.mac_address }} | <strong>Licența S.O.:</strong> {{ pc.os_license }} {% if pc.additional_licenses %}| <strong>Licențe:</strong> {{ pc.additional_licenses }}{% endif %}
{% if pc.observations %}<br><strong>Observații:</strong> {{ pc.observations }}{% endif %}
</span>
</td>
</tr>
@@ -84,6 +85,7 @@
<strong>{{ peripheral.name }}</strong><br>
<span style="font-size: 0.9em;">
<strong>S/N:</strong> {{ peripheral.serial_number }}
{% if peripheral.observations %}<br><strong>Observații:</strong> {{ peripheral.observations }}{% endif %}
</span>
</td>
</tr>
BIN
View File
Binary file not shown.