When you use docker-compose, logs are not colorized like:
However, you can get colorized logs using really-cute-'cat' solution. Instead of
docker-compose up
using
docker-compose up | cat
export PROJECT_ID="INSERT-PROJECT-ID" | |
export PROJECT_NUMBER="INSERT-PROJECT-NUMBER" | |
export STATE_BUCKET="INSERT-STATE-BUCKET-NAME" | |
gcloud storage buckets create gs://$STATE_BUCKET --project=$PROJECT_ID --default-storage-class=STANDARD --location=EUROPE-WEST1 --uniform-bucket-level-access | |
gcloud iam workload-identity-pools create github \ | |
--project=$PROJECT_ID \ | |
--location="global" \ |
version: '3' | |
services: | |
app: | |
image: nginx:alpine | |
ports: ["80:80"] | |
restart: unless-stopped | |
restarter: | |
image: docker:cli | |
volumes: ["/var/run/docker.sock:/var/run/docker.sock"] |
alias kc='kubectl' | |
alias kclf='kubectl logs --tail=200 -f' | |
alias kcgs='kubectl get service -o wide' | |
alias kcgd='kubectl get deployment -o wide' | |
alias kcgp='kubectl get pod -o wide' | |
alias kcgn='kubectl get node -o wide' | |
alias kcdp='kubectl describe pod' | |
alias kcds='kubectl describe service' | |
alias kcdd='kubectl describe deployment' | |
alias kcdf='kubectl delete -f' |