Created
October 9, 2017 20:04
-
-
Save RdeWilde/970438b17597b94bf56ce8861314e8a4 to your computer and use it in GitHub Desktop.
Docker cluster for ION web application
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: '3' | |
services: | |
web: | |
image: nginx:latest | |
ports: | |
- "80:80" | |
- "3000:443" | |
restart: always | |
volumes: | |
- "./etc/nginx/default.conf:/etc/nginx/conf.d/default.conf" | |
- "./etc/ssl:/etc/ssl" | |
- "./web:/var/www/html" | |
depends_on: | |
- php | |
- mysqldb | |
php: | |
image: nanoninja/php-fpm | |
restart: always | |
volumes: | |
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini" | |
- "./web:/var/www/html" | |
composer: | |
image: "composer" | |
volumes: | |
- "./web:/app" | |
command: install | |
# myadmin: | |
# image: phpmyadmin/phpmyadmin | |
# container_name: phpmyadmin | |
# ports: | |
# - "8080:80" | |
# environment: | |
# - PMA_ARBITRARY=1 | |
# - PMA_HOST=${MYSQL_HOST} | |
# restart: always | |
# depends_on: | |
# - mysqldb | |
mysqldb: | |
image: mysql | |
container_name: ${MYSQL_HOST} | |
restart: always | |
env_file: | |
- ".env" | |
environment: | |
- MYSQL_DATABASE=${MYSQL_DATABASE} | |
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} | |
- MYSQL_USER=${MYSQL_USER} | |
- MYSQL_PASSWORD=${MYSQL_PASSWORD} | |
ports: | |
- "8989:3306" | |
volumes: | |
- "./data/db/mysql:/var/lib/mysql" | |
iond: | |
image: rdewilde/iond | |
container_name: iond | |
ports: | |
- "12700:12700" | |
- "12705:12705" | |
restart: always | |
env_file: | |
- ".env" | |
environment: | |
- IOND_USER=${IOND_USER} | |
- IOND_PASS=${IOND_PASS} | |
- IOND_ALLOWIP=${IOND_ALLOWIP} | |
- IOND_ARGS=${IOND_ARGS} | |
volumes: | |
- "./ioncoin/:/root/.ioncoin/" | |
memcached: | |
image: memcached | |
container_name: memcached | |
command: memcached -m 128m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example
.env
file: