adding first code

This commit is contained in:
Janis Steiner
2024-06-17 20:26:07 +01:00
parent fe23e852d0
commit 8de0f13305
2 changed files with 18 additions and 18 deletions

View File

@@ -1,35 +1,35 @@
version: '3.3'
services:
cyberhex-db:
sys0-db:
image: yobasystems/alpine-mariadb:latest
container_name: cyberhex-db
container_name: sys0-db
environment:
MYSQL_ROOT_PASSWORD: 1234
networks:
cyberhex-network:
sys0-network:
ipv4_address: 192.168.178.2
volumes:
- cyberhex-db-storage:/var/lib/mysql
- sys0-db:/var/lib/mysql
cyberhex-srv:
sys0-srv:
build:
context: .
dockerfile: srv_dockerfile
container_name: cyberhex-srv
container_name: sys0-srv
networks:
cyberhex-network:
sys0-network:
ipv4_address: 192.168.178.3
ports:
- "444:443"
- "80:80"
depends_on:
- cyberhex-db
- sys0-db
volumes:
- ./cyberhex-code:/var/www/html
- ./apache-conf:/etc/apache2/sites-available
- ./certs:/etc/apache2/certs
- ./sys0-code:/var/www/html
- ./apache-conf:/etc/apache2/sites-enabled/
- ./php-conf:/usr/local/etc/php/
networks:
cyberhex-network:
sys0-network:
driver: bridge
ipam:
driver: default
@@ -37,5 +37,5 @@ networks:
- subnet: 192.168.178.0/24
volumes:
cyberhex-db-storage:
sys0-db:
external: true

View File

@@ -3,10 +3,10 @@ define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '1234');
define('DB_NAME', 'system0');
$api="bot6975511033:AAGGswiwKYwCVbehpGE3hz_tLc9xuSAoBVg"; //the telegram api key for jakach notification system
$SENDGRID_API_KEY="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"; //our new api key, for the new mail address
$sendgrid_email="print@ksw3d.ch"; //our new email
$chat_id="6587711215"; //chat id of the admin => janis steiner
$api=""; //the telegram api key for jakach notification system
$SENDGRID_API_KEY=""; //our new api key, for the new mail address
$sendgrid_email=""; //our new email
$chat_id=""; //chat id of the admin => janis steiner
/* Attempt to connect to MySQL database */
$link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);