Commit 2bd87870 authored by Florian Heder's avatar Florian Heder

[FEATURE] Update production service

parent f81a2b30
# Read about configuration, here:
# https://craftcms.com/docs/4.x/config/
# The application ID used to to uniquely store session and cache data, mutex locks, and more
CRAFT_APP_ID=CraftCMS--21e7b9f1-5c74-4b9f-b281-19ab76ee5581
# The environment Craft is currently running in (dev, staging, production, etc.)
CRAFT_ENVIRONMENT=dev
# The secure key Craft will use for hashing and encrypting data
CRAFT_SECURITY_KEY=wplt9RoayVqpSsEY13yZ1KRAE6UuqWkb
# Database connection settings
CRAFT_DB_DRIVER="mysql"
CRAFT_DB_SERVER="db"
CRAFT_DB_PORT="3306"
CRAFT_DB_DATABASE="db"
CRAFT_DB_USER="db"
CRAFT_DB_PASSWORD="db"
CRAFT_DB_SCHEMA=public
CRAFT_DB_TABLE_PREFIX=
# General settings (see config/general.php)
DEV_MODE=true
ALLOW_ADMIN_CHANGES=true
DISALLOW_ROBOTS=true
MAILPIT_SMTP_PORT="1025"
CRAFT_WEB_URL="https://ved.ddev.site"
PRIMARY_SITE_URL="https://ved.ddev.site"
MAILPIT_SMTP_HOSTNAME="127.0.0.1"
CRAFT_WEB_ROOT="/var/www/html/web"
......@@ -12,11 +12,11 @@ CRAFT_SECURITY_KEY=
# Database connection settings
CRAFT_DB_DRIVER=mysql
CRAFT_DB_SERVER=127.0.0.1
CRAFT_DB_SERVER=ved-db
CRAFT_DB_PORT=3306
CRAFT_DB_DATABASE=
CRAFT_DB_USER=root
CRAFT_DB_PASSWORD=
CRAFT_DB_DATABASE=ved
CRAFT_DB_USER=vedUser
CRAFT_DB_PASSWORD=aGWfj4jyIE
CRAFT_DB_SCHEMA=public
CRAFT_DB_TABLE_PREFIX=
......@@ -24,3 +24,16 @@ CRAFT_DB_TABLE_PREFIX=
DEV_MODE=false
ALLOW_ADMIN_CHANGES=false
DISALLOW_ROBOTS=true
# General settings (see config/general.php)
DEV_MODE=true
ALLOW_ADMIN_CHANGES=true
DISALLOW_ROBOTS=true
MAILPIT_SMTP_PORT="1025"
CRAFT_WEB_URL="https://ved.ddev.site"
PRIMARY_SITE_URL="https://ved.ddev.site"
MAILPIT_SMTP_HOSTNAME="127.0.0.1"
CRAFT_WEB_ROOT="/var/www/html/web"
COOKIE_VALIDATION_KEY="alsdkjladjl"
SECURITY_KEY="asdfjalsdfj"
\ No newline at end of file
version: "3"
services:
ved-craft:
build:
context: ./php81
environment:
VIRTUAL_HOST: ${VIRTUAL_HOST}
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
LETSENCRYPT_EMAIL: florian.heder@hebotek.at
LANG: de_DE.UTF-8
LC_ALL: de_DE.UTF-8
TZ: "Europe/Vienna"
volumes:
- ../:/var/website/current
depends_on:
- ved-db
container_name: ved-craft
restart: ${RESTART}
networks:
- backend
- default
ved-db:
image: mysql:8.0
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
environment:
- "MYSQL_USER=${MYSQL_USER}"
- "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
- "MYSQL_DATABASE=${MYSQL_DATABASE}"
- "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT}"
volumes:
- ved-db:/var/lib/mysql
container_name: ved-db
restart: ${RESTART}
networks:
- backend
volumes:
ved-db:
networks:
default:
external:
name: nginx-proxy
backend:
###########################################################
###################### General Setup ######################
## Mysql Credentials ######################################
MYSQL_USER=vedUser
MYSQL_PASSWORD=aGWfj4jyIE
MYSQL_DATABASE=ved
MYSQL_ROOT=Xual4yjv3AiWuo
###########################################################
## Restart behaviour ######################################
# (always | unless-stopped | no) always in prod mode
RESTART=unless-stopped
###########################################################
## Environment and URL Behaviour ##########################
## Setup the HTTP URL for your Server
## eg.: www.hebotek.at,hebotek.at,www.hebotek.org
VIRTUAL_HOST=ved.localhost
## keep Letsencrypt Empty for non production sites -
## always test the regular virtual_host entry first
LETSENCRYPT_HOST=
#start:
# ./craft project-config/sync
# ./craft setup/security-key
\ No newline at end of file
# Docker image for TYPO3 CMS
# Copyright (C) 2016-2023 Martin Helmich <martin@helmich.me>
# and contributors <https://github.com/martin-helmich/docker-typo3/graphs/contributors>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# NOTE: This file is automatically generated from a template. Please
# do not make any changes to this file directly, and consult the
# CONTRIBUTING document, first.
FROM php:8.1-apache-bookworm
LABEL maintainer="Martin Helmich <typo3@martin-helmich.de>"
# Install TYPO3/Craft CMS
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
wget \
git \
sudo \
nano \
vim \
# Configure PHP
libxml2-dev libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libpq-dev \
libzip-dev \
zlib1g-dev \
# Install required 3rd party tools
graphicsmagick && \
# Configure extensions
docker-php-ext-configure gd --with-libdir=/usr/include/ --with-jpeg --with-freetype && \
docker-php-ext-install -j$(nproc) mysqli soap gd zip opcache intl pdo_mysql pdo bcmath && \
echo 'always_populate_raw_post_data = -1\nmax_execution_time = 240\nmax_input_vars = 1500\nupload_max_filesize = 32M\npost_max_size = 32M' > /usr/local/etc/php/conf.d/typo3.ini && \
# Configure Apache as needed
a2enmod rewrite && \
apt-get clean && \
apt-get -y purge \
libxml2-dev libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libzip-dev \
zlib1g-dev && \
rm -rf /var/lib/apt/lists/* /usr/src/*
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN rm -rf /var/www/html && ln -sfn /var/website/current/web /var/www/html
WORKDIR /var/www/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment