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

View File

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