Skip to content

Instantly share code, notes, and snippets.

View erkarp's full-sized avatar
💭
* portraitist unknown

erkarp

💭
* portraitist unknown
View GitHub Profile
@dreamuth
dreamuth / docker-cleanup-resources.md
Created May 29, 2018 23:27 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@akkefa
akkefa / Docker-compose V 3.3 Django setup
Last active January 24, 2019 17:21
Docker-compose V3.3 Django mysql nginx Setup
version: '3.3'
services:
django:
container_name: "django"
build:
context: ./docker/django
working_dir: /var/www
command: ["gunicorn", "-b", "0.0.0.0:8000" ,"-w" ,"4" ,"djangoapps.wsgi"]
@laterbreh
laterbreh / Express 4 and Socket.io: Passing socket.io to routes - app.js
Last active August 15, 2023 13:58
Express 4 and Socket.io: Passing socket.io to routes.
var app = express();
app.io = require('socket.io')();
var routes = require('./routes/index')(app.io);
app.use('/', routes);