Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# developed for TheDifferent by Florian Kleber for terms of use have a look at the LICENSE file
# terminate on errors
set -xe
# define as docker compose var or default ""
WP_BACKUP_URL=${WP_BACKUP_URL:-}
#!/usr/bin/env bash
# terminate on errors
set -xe
# define as docker compose var or default ""
WP_BACKUP_URL=${WP_BACKUP_URL:-}
#is empty
function func_0 {
@naviarh
naviarh / Dockerfile
Last active February 17, 2022 20:38
FROM alpine:3.15
MAINTAINER Navi Arkh
LABEL description "Lightweight WordPress with Nginx & PHP-FPM based on Alpine Linux."
ARG WORDPRESS_VERSION=5.9
ARG WORDPRESS_SHA1=4e9a256f5cbcfba26108a1a9ebdb31f2ab29af9f
RUN echo "@main http://dl-cdn.alpinelinux.org/alpine/edge/main/" >> /etc/apk/main \
&& echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \
version: "3"
services:
web:
image: nginx
volumes:
- "./nginx/templates:/etc/nginx/templates"
- "./html:/usr/share/nginx/html:ro"
#environment:
version: "3"
services:
web:
image: nginx
volumes:
- "./nginx/templates:/etc/nginx/templates"
- "./html:/usr/share/nginx/html:ro"
ports:
version: "3.7"
services:
wp1:
image: wordpress:php8.1-apache
container_name: wp1
restart: unless-stopped
ports:
- 80:80
version: '3'
services:
wp:
image: milanb/wordpress-sqlite
restart: unless-stopped
environment:
- WP_HOME=http://localhost:8002
- WP_SITEURL=http://localhost:8002
version: '3.7'
services:
wp1-sqlite:
image: milanb/wordpress-sqlite
container_name: wp1-sqlite
restart: unless-stopped
volumes:
- "./db:/var/www/db"
- "./html:/var/www/html"
environment:
version: "3.7"
services:
wp2-db:
image: mariadb:10.7.1
container_name: wb2-db
restart: unless-stopped
volumes:
- "./mysql:/var/lib/mysql"
version: '3.7'
services:
webrtc-star:
image: libp2p/js-libp2p-webrtc-star
container_name: webrtc-star
restart: unless-stopped
labels:
# https access for domain