Spawn Container Examples
A list of copy & paste examples for the available spawns in Docker-Proxy-Stack.
MySQL, MariaDB & PhpMyAdmin
https://hub.docker.com/_/mysql
1#!/usr/bin/env bash
2
3CONTAINER_NAME="proxy-mysql5"
4
5docker run --tty --detach \
6 --name "${CONTAINER_NAME}" \
7 --volume "proxy-data-db5:/var/lib/mysql" \
8 --volume "${DATA_PATH}:/var/data" \
9 --network "${NETWORK_NAME}" \
10 --restart unless-stopped \
11 --env TZ=Europe/Amsterdam \
12 --env MYSQL_ROOT_PASSWORD=root \
13 --env MYSQL_PORT=3306 \
14 mysql:5.7 --character-set-server=utf8mb4 \
15 --collation-server=utf8mb4_unicode_ci \
16 --sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
1#!/usr/bin/env bash
2
3CONTAINER_NAME="proxy-mysql8"
4
5docker run --tty --detach \
6 --name "${CONTAINER_NAME}" \
7 --volume "proxy-data-db8:/var/lib/mysql" \
8 --volume "${DATA_PATH}:/var/data" \
9 --network "${NETWORK_NAME}" \
10 --restart unless-stopped \
11 --env TZ=Europe/Amsterdam \
12 --env MYSQL_ROOT_PASSWORD=root \
13 --env MYSQL_PORT=3306 \
14 mysql:8 --character-set-server=utf8mb4 \
15 --collation-server=utf8mb4_unicode_ci
https://hub.docker.com/_/mariadb
1#!/usr/bin/env bash
2
3CONTAINER_NAME="proxy-mariadb10"
4
5docker run --tty --detach \
6 --name "${CONTAINER_NAME}" \
7 --volume "proxy-data-mdb10:/var/lib/mysql" \
8 --volume "${DATA_PATH}:/var/data" \
9 --network "${NETWORK_NAME}" \
10 --restart unless-stopped \
11 --env TZ=Europe/Amsterdam \
12 --env MYSQL_ROOT_PASSWORD=root \
13 --env MYSQL_PORT=3306 \
14 mariadb:10
https://hub.docker.com/_/phpmyadmin
1#!/usr/bin/env bash
2
3CONTAINER_NAME="proxy-pma"
4
5docker run --tty --detach \
6 --name "${CONTAINER_NAME}" \
7 --volume "${DATA_PATH}:/var/data" \
8 --network "${NETWORK_NAME}" \
9 --restart unless-stopped \
10 --env TZ=Europe/Amsterdam \
11 --env VIRTUAL_HOST=pma.docker.test \
12 --env VIRTUAL_PORT=80 \
13 --env PMA_ARBITRARY=1 \
14 --env PMA_HOST=proxy-mariadb10 \
15 --env PMA_USER=root \
16 --env PMA_PASSWORD=root \
17 phpmyadmin:latest
PostgreSQL & Adminer
https://hub.docker.com/_/postgres
1#!/usr/bin/env bash
2
3CONTAINER_NAME="proxy-postgres13"
4
5docker run --tty --detach \
6 --name "${CONTAINER_NAME}" \
7 --volume "proxy-data-pg13:/var/lib/postgresql/data" \
8 --volume "${DATA_PATH}:/var/data" \
9 --network "${NETWORK_NAME}" \
10 --restart unless-stopped \
11 --env TZ=Europe/Amsterdam \
12 --env POSTGRES_USER=root \
13 --env POSTGRES_PASSWORD=root \
14 --env POSTGRES_PORT=5432 \
15 postgres:13
https://hub.docker.com/_/adminer
1#!/usr/bin/env bash
2
3CONTAINER_NAME="proxy-adminer"
4
5docker run --tty --detach \
6 --name "${CONTAINER_NAME}" \
7 --volume "${DATA_PATH}:/var/data" \
8 --network "${NETWORK_NAME}" \
9 --restart unless-stopped \
10 --env VIRTUAL_HOST=adminer.docker.test \
11 --env VIRTUAL_PORT=8080 \
12 --env ADMINER_DEFAULT_SERVER=proxy-postgres13 \
13 --env ADMINER_PLUGINS="tables-filter tinymce edit-calendar" \
14 --env ADMINER_DESIGN=rmsoft \
15 adminer:latest
MongoDB & Commander
https://hub.docker.com/_/mongo
1#!/usr/bin/env bash
2
3CONTAINER_NAME="proxy-mongo5"
4
5docker run --tty --detach \
6 --name "${CONTAINER_NAME}" \
7 --volume "proxy-data-mongo5:/data/db" \
8 --volume "${DATA_PATH}:/var/data" \
9 --network "${NETWORK_NAME}" \
10 --restart unless-stopped \
11 --env TZ=Europe/Amsterdam \
12 --env MONGO_INITDB_ROOT_USERNAME=root \
13 --env MONGO_INITDB_ROOT_PASSWORD=root \
14 mongo:5
https://hub.docker.com/_/mongo-express
1#!/usr/bin/env bash
2
3CONTAINER_NAME="proxy-mongo-express"
4
5docker run --tty --detach \
6 --name "${CONTAINER_NAME}" \
7 --volume "${DATA_PATH}:/var/data" \
8 --network "${NETWORK_NAME}" \
9 --restart unless-stopped \
10 --env VIRTUAL_HOST=mongo-express.docker.test \
11 --env VIRTUAL_PORT=8081 \
12 --env ME_CONFIG_MONGODB_ENABLE_ADMIN=true \
13 --env ME_CONFIG_MONGODB_SERVER=proxy-mongo5 \
14 --env ME_CONFIG_MONGODB_PORT=27017 \
15 --env ME_CONFIG_BASICAUTH_USERNAME=root \
16 --env ME_CONFIG_BASICAUTH_PASSWORD=root \
17 --env ME_CONFIG_MONGODB_ADMINUSERNAME=root \
18 --env ME_CONFIG_MONGODB_ADMINPASSWORD=root \
19 mongo-express:latest
Redis & Commander
https://hub.docker.com/_/redis
1#!/usr/bin/env bash
2
3CONTAINER_NAME="proxy-redis5"
4
5docker run --tty --detach \
6 --name "${CONTAINER_NAME}" \
7 --volume "proxy-data-redis5:/data" \
8 --volume "${DATA_PATH}:/var/data" \
9 --network "${NETWORK_NAME}" \
10 --restart unless-stopped \
11 --env TZ=Europe/Amsterdam \
12 --env REDIS_PASSWORD=root \
13 --env REDIS_PORT=6379 \
14 redis:5 --appendonly yes
https://hub.docker.com/r/rediscommander/redis-commander
1#!/usr/bin/env bash
2
3CONTAINER_NAME="proxy-rediscommander"
4
5docker run --tty --detach \
6 --name "${CONTAINER_NAME}" \
7 --volume "${DATA_PATH}:/var/data" \
8 --network "${NETWORK_NAME}" \
9 --restart unless-stopped \
10 --env VIRTUAL_HOST=redis-commander.docker.test \
11 --env VIRTUAL_PORT=8081 \
12 --env REDIS_HOST=proxy-redis5 \
13 --env REDIS_PORT=6379 \
14 --env REDIS_PASSWORD=root \
15 rediscommander/redis-commander:latest
RabbitMQ
https://hub.docker.com/_/rabbitmq
1#!/usr/bin/env bash
2
3CONTAINER_NAME="proxy-rabbitmq"
4
5docker run --tty --detach \
6 --name "${CONTAINER_NAME}" \
7 --hostname "rabbitmq.docker.test" \
8 --volume "proxy-data-rabbitmq:/var/lib/rabbitmq" \
9 --network "${NETWORK_NAME}" \
10 --restart unless-stopped \
11 --env TZ=Europe/Amsterdam \
12 --env VIRTUAL_HOST=rabbitmq.docker.test \
13 --env VIRTUAL_PORT=15672 \
14 --env RABBITMQ_DEFAULT_USER=root \
15 --env RABBITMQ_DEFAULT_PASS=root \
16 rabbitmq:3.9-management