This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.5" | |
services: | |
mongo-config-server1: | |
image: mongo:4.2 | |
container_name: mongo-config-server1 | |
command: mongod --configsvr --replSet rnd-config-replica-set --port 27019 | |
mongo-config-server2: | |
image: mongo:4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
database: | |
image: mysql:5.7 | |
container_name: mysql | |
restart: always | |
environment: | |
MYSQL_DATABASE: 'db' | |
MYSQL_USER: 'user' | |
MYSQL_PASSWORD: 'password' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//default time zone | |
date_default_timezone_set("Asia/Jakarta"); | |
//fungsi check tanggal merah | |
function tanggalMerah($value) { | |
$array = json_decode(file_get_contents("https://raw.githubusercontent.com/guangrei/Json-Indonesia-holidays/master/calendar.json"),true); | |
//check tanggal merah berdasarkan libur nasional | |
if(isset($array[$value])) | |
: echo"tanggal merah ".$array[$value]["deskripsi"]; |