Skip to content

Instantly share code, notes, and snippets.

@barnabas-szekeres
Last active June 8, 2017 11:07
Show Gist options
  • Select an option

  • Save barnabas-szekeres/e9e6c7439c8d64df09da7c7e77bc7a11 to your computer and use it in GitHub Desktop.

Select an option

Save barnabas-szekeres/e9e6c7439c8d64df09da7c7e77bc7a11 to your computer and use it in GitHub Desktop.
Sendy Docker Environment
DATABASE_HOST=mysql
MYSQL_DATABASE=sendy
MYSQL_USER=root
MYSQL_ROOT_PASSWORD=root
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/app
<Directory /var/www/app/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order deny,allow
Allow from all
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
<?php
//----------------------------------------------------------------------------------//
// COMPULSORY SETTINGS
//----------------------------------------------------------------------------------//
/* Set the URL to your Sendy installation (without the trailing slash) */
define('APP_PATH', 'http://yourdomain.com');
/* MySQL database connection credentials (please place values between the apostrophes) */
$dbHost = 'mysql'; //MySQL Hostname
$dbUser = 'root'; //MySQL Username
$dbPass = 'root'; //MySQL Password
$dbName = 'sendy'; //MySQL Database Name
//----------------------------------------------------------------------------------//
// OPTIONAL SETTINGS
//----------------------------------------------------------------------------------//
/*
Change the database character set to something that supports the language you'll
be using. Example, set this to utf16 if you use Chinese or Vietnamese characters
*/
$charset = 'utf8mb4';
/* Set this if you use a non standard MySQL port. */
$dbPort = 3306;
/* Domain of cookie (99.99% chance you don't need to edit this at all) */
define('COOKIE_DOMAIN', '');
//----------------------------------------------------------------------------------//
?>
version: '2'
services:
php-apache:
image: romeoz/docker-apache-php:7.1
working_dir: /var/www/app
container_name: sendy-apache
volumes:
- ./sendy/:/var/www/app/
- ./apache.conf:/etc/apache2/sites-enabled/app.conf
ports:
- "80:80"
env_file:
- .env
links:
- mysql
mysql:
image: mysql:5.5
container_name: sendy-mysql
volumes:
- ./data/mysql:/var/lib/mysql
ports:
- "3306:3306"
env_file:
- .env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment