Skip to content

Instantly share code, notes, and snippets.

View nginx.conf
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
View Dockerfile-python
# For more information, please refer to https://aka.ms/vscode-docker-python
FROM python:3.11.2-buster
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
# Install pip requirements
View docker-compose-phpmy.yml
version: '3.1'
services:
db:
image: mariadb:10.6
restart: always
environment:
MYSQL_ROOT_PASSWORD: notSecureChangeMe
phpmyadmin:
View hello.py
from bottle import route, run
@route('/hello')
def hello():
return "Hello World!"
run(host='localhost', port=8080, debug=True)
View holamundo.html
<html>
<head>
</head>
<body>
<h1>HHola Mundo<h1>
</body>
</html>
View docker-compose-python.yml
version: '3.4'
services:
pythondev:
image: python:3.11.2-buster
container_name: pythondev301
ports:
- 8000:8000
- 3000:3000
volumes:
View docker-compose-ghost.yml
version: '3.1'
services:
ghost:
image: ghost:4-alpine
restart: always
ports:
- 8080:2368
environment:
View docker-compose-wp.yml
version: '3.1'
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
View renew_gpg_key.md

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@Jaxmetalmax
Jaxmetalmax / Dockerfile
Created March 3, 2021 05:45 — forked from nginx-gists/Dockerfile
NGINX Plus for the IoT: Load Balancing MQTT
View Dockerfile
# Pull base image. The official docker openjdk-8 image is used here.
FROM java:8-jdk
# Copy HiveMQ to container
COPY hivemq.zip /tmp/
#Install wget and unzip, then download and install HiveMQ.
RUN \
apt-get install -y wget unzip &&\
unzip /tmp/hivemq.zip -d /opt/ &&\