Skip to content

Instantly share code, notes, and snippets.

View Gabri's full-sized avatar
💭
Stay human

Gabri Gabri

💭
Stay human
View GitHub Profile
@Gabri
Gabri / README.md
Last active October 23, 2020 22:40
[VPS Lemp setup] every step to run docker lemp #docker #lemp

In order to give our non-root user access to the Docker management commands, we need to create a docker group (it may already be created for you), and then add your primary user to that group.

$ sudo groupadd docker
$ sudo usermod -aG docker $USER

By running this command, we ask Docker Compose to execute Bash on the PHP container:

docker-compose exec php bash
@Gabri
Gabri / docker-compose-nginx-php-alpine.yml
Last active November 11, 2020 08:22
[docker compose mysql + phpmyadmin] port phpmyadmin 8306 root/secret #docker
version: '3.7'
# Services
services:
# Nginx Service
web:
container_name: ${PROJECT_NAME}_webngx_${VERSION_ID}
image: nginx:1.17-alpine
ports:
@Gabri
Gabri / dockerCommands.md
Last active April 6, 2023 03:28
[Docker] docker commands #docker

Docker

Command utility tools

ctop lazydocker

Rimuovere immagini non più usate

docker image prune -f

Pulizia di dati non più utilizzati (images, container, networks)

docker system prune --all --force

@Gabri
Gabri / 0_reuse_code.js
Last active September 19, 2015 20:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console