mirror of
https://codeberg.org/ThisIsMiseryy/techstore
synced 2026-05-14 17:02:06 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
65fb68d68e
|
|||
|
65888cc865
|
+10
-3
@@ -4,15 +4,22 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 8069:80
|
- 8069:80
|
||||||
environment:
|
environment:
|
||||||
DB_HOST: mariadb
|
DB_HOST: db
|
||||||
DB_USERNAME: techstore
|
DB_USERNAME: techstore
|
||||||
DB_PASSWORD: changeme
|
DB_PASSWORD: changeme
|
||||||
DB_DATABASE: TechStore
|
DB_DATABASE: TechStore
|
||||||
mariadb:
|
volumes:
|
||||||
|
- ./images:/var/www/html/img
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
db:
|
||||||
image: mariadb
|
image: mariadb
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
MARIADB_ROOT_PASSWORD: changemeplease
|
MARIADB_ROOT_PASSWORD: changemeplease
|
||||||
MARIADB_USER: techstore
|
MARIADB_USER: techstore
|
||||||
MARIADB_PASSWORD: changeme
|
MARIADB_PASSWORD: changeme
|
||||||
MARIADB_DATABASE: TechStore
|
MARIADB_DATABASE: TechStore
|
||||||
|
volumes:
|
||||||
|
- ./db:/var/lib/mysql
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
include '../db_conf.php';
|
||||||
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="it">
|
<html lang="it">
|
||||||
<head>
|
<head>
|
||||||
@@ -8,9 +12,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
session_start();
|
|
||||||
include '../db_conf.php';
|
|
||||||
|
|
||||||
if (!isset($_SESSION['id'])) {
|
if (!isset($_SESSION['id'])) {
|
||||||
header('Location: ../login.php');
|
header('Location: ../login.php');
|
||||||
exit();
|
exit();
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
include '../db_conf.php';
|
||||||
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="it">
|
<html lang="it">
|
||||||
<head>
|
<head>
|
||||||
@@ -8,9 +12,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
session_start();
|
|
||||||
include '../db_conf.php';
|
|
||||||
|
|
||||||
if (!isset($_SESSION['id'])) {
|
if (!isset($_SESSION['id'])) {
|
||||||
header('Location: ../login.php');
|
header('Location: ../login.php');
|
||||||
exit();
|
exit();
|
||||||
|
|||||||
Reference in New Issue
Block a user