Skip to content

Instantly share code, notes, and snippets.

View RobDWaller's full-sized avatar

Rob Waller RobDWaller

View GitHub Profile
@RobDWaller
RobDWaller / deno-docker.txt
Created May 17, 2020 06:58
Deno Docker Environment
// docker-compose.yml
version: "3"
services:
deno:
build:
context: .
dockerfile: Dockerfile
volumes:
@RobDWaller
RobDWaller / docker-scala.txt
Created April 13, 2020 09:12
Scala Docker Environment Notes
// Spin up a 'Hello, World!' Scala environment using Docker and Ubuntu
// Docker Compose Config
version: "3"
services:
scala:
build:
context: .
@RobDWaller
RobDWaller / docker-compose.yml
Created April 1, 2020 10:28
Rust Docker Compose Example
version: "3"
services:
rust:
image: rust:1.41
volumes:
- .:/var/www/html
working_dir: /var/www/html
tty: true
environment:
@RobDWaller
RobDWaller / docker-php.txt
Created September 23, 2019 12:13
Create PHP Docker Environment with Composer and XDebug
# docker-compose.yml
version: "3"
services:
php:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/var/www/html
@RobDWaller
RobDWaller / docker-compose.yml
Created August 6, 2019 08:22
Persistent Docker Node Environment
version: "3"
services:
node:
image: node:12
volumes:
- .:/var/www/html
working_dir: /var/www/html
tty: true
ports:
@RobDWaller
RobDWaller / docker-compose.yml
Created May 24, 2019 15:02
Nginx, PHP FPM, MongoDB Docker Compose
version: "3"
services:
server:
container_name: settings_server
image: nginx:1.15
ports:
- "8080:80"
volumes:
@RobDWaller
RobDWaller / SymfonyDockerNotes.txt
Last active May 15, 2019 14:36
Symfony Docker Setup Notes
# Some notes on how to get Symfony up and running with Docker and MySQL.
# Two images are pulled down PHP-Apache and MySQL.
# The PHP-Apache sites-available default is overwritten by a local file.
# The PHP pdo-mysql extension needs to be installed.
# docker-compose.yml
version: "3"
services:
@RobDWaller
RobDWaller / ruleset.xml
Created March 6, 2019 15:49
A stricter codesize ruleset than PHPMD ships with by default.
<?xml version="1.0"?>
<ruleset name="Codesize Mess Detection Rules"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0
http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="
http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
Runs PHPMD codesize rules more strictly than default.
@RobDWaller
RobDWaller / Dokerfile
Created December 7, 2018 12:35
Delete all stopped Docker containers
docker rm `docker ps -f "status=exited" -q`
@RobDWaller
RobDWaller / wordpress.sql
Created September 16, 2018 10:57
Wordpress MySQL Grants
# Permissions required for Wordpress on Mysql
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, INDEX, LOCK TABLES, REFERENCES, CREATE TEMPORARY TABLES, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, EXECUTE, ALTER ROUTINE ON *.* TO `user`@`host`;