-
-
Save josephbolus/968a31e8fe750a4a346e9509fe1574da to your computer and use it in GitHub Desktop.
Getting started with docker-compose and the dukewebservices images
This file contains 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: "2" | |
services: | |
data: | |
image: busybox:latest | |
volumes: | |
- ./persistent/html:/var/www/html:cached | |
- ./persistent/mail:/var/mail:cached | |
- ./persistent/sql-data:/var/lib/mysql | |
- ./persistent/backup:/var/backup | |
- ./persistent/logs/apache:/var/apache2/logs | |
- ./persistent/logs/php-fpm:/var/log/php7 | |
web: | |
image: dukewebservices/apache:apache2 | |
environment: | |
PHPFPM_HOST: "php:9000" | |
DOCUMENT_ROOT: /var/www/html | |
SERVER_ROOT: /var/apache2 | |
volumes_from: [data] | |
links: [db, php] | |
ports: ['8080:80'] | |
php: | |
image: dukewebservices/php:7.0-fpm | |
environment: | |
PHP_INI_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mail | |
links: [db, mail] | |
volumes_from: [data] | |
working_dir: /var/www/html | |
db: | |
image: dukewebservices/mariadb:10.1 | |
environment: | |
APP_PASSWORD: 'secret-password' | |
volumes_from: [data] | |
mysql-tool: | |
image: dukewebservices/mysqltool:1.0 | |
environment: | |
MYSQL_HOST: db | |
MYSQL_DATABASE: app | |
MYSQL_USER: app | |
MYSQL_PASSWORD: 'secret-password' | |
STORAGE_DIRECTORY: '/var/backup' | |
links: [db] | |
volumes_from: [data] | |
mail: | |
image: dukewebservices/fakesmtp:2.0 | |
volumes_from: [data] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment