Browse Source

feat: update setup script and compose file for custom image

master
Dennis Buchhorn 3 years ago
parent
commit
8b36868317
2 changed files with 17 additions and 1 deletions
  1. +4
    -1
      docker-compose.yml
  2. +13
    -0
      setup

+ 4
- 1
docker-compose.yml View File

@ -2,7 +2,7 @@ version: "3.5"
services: services:
typo3: typo3:
container_name: ${TYPO3_CONTAINER_NAME:-typo3} container_name: ${TYPO3_CONTAINER_NAME:-typo3}
image: martinhelmich/typo3:${TYPO3_VERSION:-latest}
image: ${TYPO3_IMAGE:-martinhelmich/typo3}:${TYPO3_VERSION:-latest}
restart: unless-stopped restart: unless-stopped
ports: ports:
- ${TYPO3_HOST_IP_ADDRESS:-127.0.0.1}:${TYPO3_HOST_PORT:-8001}:80 - ${TYPO3_HOST_IP_ADDRESS:-127.0.0.1}:${TYPO3_HOST_PORT:-8001}:80
@ -10,3 +10,6 @@ services:
- ./fileadmin:/var/www/html/fileadmin - ./fileadmin:/var/www/html/fileadmin
- ./typo3conf:/var/www/html/typo3conf - ./typo3conf:/var/www/html/typo3conf
- ./uploads:/var/www/html/uploads - ./uploads:/var/www/html/uploads
sysctls:
- net.ipv4.ip_unprivileged_port_start=0

+ 13
- 0
setup View File

@ -21,6 +21,7 @@ DELETE_CONFIG=""
TYPO3_PROJECT_NAME="typo3_${DATE}" TYPO3_PROJECT_NAME="typo3_${DATE}"
TYPO3_PROJECT_NAME_SUFFIX="" TYPO3_PROJECT_NAME_SUFFIX=""
TYPO3_CONTAINER_NAME="${TYPO3_PROJECT_NAME}_core" TYPO3_CONTAINER_NAME="${TYPO3_PROJECT_NAME}_core"
TYPO3_IMAGE="martinhelmich/typo3"
TYPO3_VERSION="" TYPO3_VERSION=""
TYPO3_HOST_IP_ADDRESS="" TYPO3_HOST_IP_ADDRESS=""
TYPO3_HOST_PORT="" TYPO3_HOST_PORT=""
@ -43,6 +44,12 @@ if [ -f "config" ]; then
fi fi
if [ $CONFIG_EXISTS == "false" ] || [ $USE_EXISTING_CONFIG == "n" ]; then if [ $CONFIG_EXISTS == "false" ] || [ $USE_EXISTING_CONFIG == "n" ]; then
read -p "Would you like to use custom image 'b-eit/typo3'? (y/n)" USE_CUSTOM_IMAGE
if [ $USE_CUSTOM_IMAGE == "y" ]; then
echo "You have to build this image (with correct version you want to use) befor manualy with the build script!"
read -p "Have you done this? (ENTER)"
TYPO3_IMAGE="b-eit/typo3"
fi
read -p "Enter typo3 version which should be used: " TYPO3_VERSION read -p "Enter typo3 version which should be used: " TYPO3_VERSION
read -p "Enter host (vm) ip address on which typo3 should be accessible: " TYPO3_HOST_IP_ADDRESS read -p "Enter host (vm) ip address on which typo3 should be accessible: " TYPO3_HOST_IP_ADDRESS
read -p "Enter host (vm) port on which typo3 should be accessible: " TYPO3_HOST_PORT read -p "Enter host (vm) port on which typo3 should be accessible: " TYPO3_HOST_PORT
@ -75,6 +82,12 @@ echo -n "Wait until typo3 is ready ..."
echo -e "\nTypo3 is ready!" echo -e "\nTypo3 is ready!"
if [ $DELETE_CONFIG == "y" ]; then
rm -f config
echo "Config file 'config' deleted!"
fi
rm -f .env rm -f .env
echo "Done!" echo "Done!"

Loading…
Cancel
Save