Pihole Docker Dan Doh Pihole Docker
5 Januari 2021
Pihole Docker Pihole Docker menggunakan docker-compose, dari developer pihole sudah menyediakan template yaml-nya. Untuk install pihole pakai docker caranya cukup mudah, syaratnya sudah install docker dan docker-compose. Silakan gunakan docker-compose.yaml berikut ini (ini copas dari pihole docker): version:"3"# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/services:pihole:container_name:piholeimage:pihole/pihole:latestports:- "53:53/tcp"- "53:53/udp"- "67:67/udp"- "10080:80/tcp"- "10443:443/tcp"environment:TZ:'Asia/Jakarta'WEBPASSWORD:'set pass web ui mu disini'# Volumes store your data between container upgradesvolumes:- './etc-pihole/:/etc/pihole/'- './etc-dnsmasq.d/:/etc/dnsmasq.d/'# Recommended but not required (DHCP needs NET_ADMIN)# https://github.…
Memisahkan Environment Vuejs
20 Januari 2020
Aku ada sebuah project yang dibuat menggunakan VueJs. Project ini akan dideploy dalam tiga environment: Develop Staging Production Untuk memudahkan itu, akan aku gunakan docker. Idenya sederhana, yaitu build docker image dengan tag sesuai environmentnya: sianu/myapp:v1-develop sianu/myapp:v1-staging sianu/myapp:v1-production Kenapa harus dipisah?. Hal itu disebabkan oleh API yang dipisah juga. Untuk setiap environment akan hit API yang berbeda: Develop akan hit develop.sianu.com/api Staging akan hit staging.sianu.com/api Production akan hit production.…
Local Git Server Pakai Gitea
27 Januari 2019
Apa itu gitea? Gitea is an open-source forge software package for hosting software development version control using Git as well as other collaborative features like bug tracking, wikis and code review. It supports self-hosting but also provides a free public first-party instance. It is a fork of Gogs and is written in Go Bahan: Docker Docker Compose docker-compose.yaml version:"2"networks:gitea:external:falseservices:server:image:gitea/gitea:1.10.0environment:- USER_UID=1000- USER_GID=1000- DB_TYPE=mysql- DB_HOST=db:3306- DB_NAME=gitea- DB_USER=gitea- DB_PASSWD=gitearestart:alwaysnetworks:- giteavolumes:- .…
Vuejs Docker
22 Januari 2019
Bikin frontend app pakai vuejs, enak kalau dibikin docker image buat publishnya. Berikut ini dua contoh docker untuk vuejs, contoh pertama pakai httpd untuk serve vuejs dan contoh kedua pakai nginx untuk serve vuejs. Untuk contoh ini vue routernya pakai history mode. vuejs docker httpd Pertama, masuk ke direktori kerja app vue yang kita kerjakan. Kemudian bikin file bernama Dockerfile-httpd, isi file tersebut adalah # build stage FROM node:lts-alpine as build-stage WORKDIR /app COPY package*.…
Cara Mudah Bikin DNS Server Lokal Pakai CoreDNS
5 Januari 2019
Wtf is coreDNS? CoreDNS is a DNS server. It is written in Go. It can be used in a multitude of environments because of its flexibility. CoreDNS is licensed under the Apache License Version 2, and completely open source. – coredns.io Singkat cerita, aku pengen ketika temenku buka browser, ngetik alamat fe.anuanku.dev dia akan disajikan halaman web dari komputer dengan alamat 192.168.100.137. Terus, kalau temenku akses api.anuanku.dev akan disajikan API dari komputer dengan alamat 192.…