This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
database: | |
portforward: 34233 | |
overrides: | |
volumes: | |
- type: volume | |
source: data_database | |
target: /var/lib/mysql | |
command: /entrypoint.sh --default-authentication-plugin=mysql_native_password | |
image: bitnami/mysql:5.7.41-debian-11-r1 #mysql:5.7 | |
environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
services: | |
appserver: | |
build_as_root: | |
- apt-get update -y && apt-get install -y memcached libmemcached-tools | |
- echo "#!/bin/sh\n/etc/init.d/memcached start\nexit 0" > /scripts/200-memcache-start | |
- chmod u=rwx,g=rx,o=rx /scripts/200-memcache-start && chown www-data:www-data /scripts/200-memcache-start | |
- sed -i 's/-m 64/-m 256/g' /etc/memcached.conf && echo '-o modern' >> /etc/memcached.conf | |
- sh /scripts/200-memcache-start | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install sentry onpremise with nginx proxy, self-signed certificates and letsencrypt on Ubuntu 20 | |
# | |
# CHANGELOG | |
# 20200929 - Added mozilla ssl configuration https://ssl-config.mozilla.org/#server=nginx&version=1.17.7&config=intermediate&openssl=1.1.1d&guideline=5.6 | |
# 20200929 - Added diffie-helman generation | |
# 20200928 - Initial version | |
# | |
# TODO | |
# move nginx.conf to home directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Create and activate swapfile | |
NOW=$(date '+%Y%m%d%H%M%S') | |
SWAPSIZEGB=6 | |
SWAPFILENAME="/swap.${NOW}.img" | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root (sudo)" 1>&2 | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# need to have at least 2.5GB of memory of this install may fail - see docs | |
# todo 13:52:28 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured. | |
SENTRYDB='sentry' | |
SENTRYUSER='sentry' | |
SENTRYPW='sentrypw' | |
# sudo apt-get install -y postgresql postgresql-contrib redis | |
sudo apt-get install -y postgresql redis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [{ | |
"name": "Lando", | |
"type": "php", | |
"request": "launch", | |
"port": 9000, | |
"log": true, | |
"pathMappings": { | |
"/app/": "${workspaceRoot}/" |