update docker-compose file
- rename mysql data image to data, - make the data hold redis data - mount redis log file - force redis to restart always - add latest tags to all images - add maintainer name
This commit is contained in:
parent
7285e33429
commit
3e6b9bb2bf
@ -1,6 +1,10 @@
|
|||||||
|
###########################################################
|
||||||
|
# MAINTAINER: Mahmoud Zalt <mahmoud@zalt.me> #
|
||||||
|
###########################################################
|
||||||
|
|
||||||
# PHP + NGINX Container #----------------------------------
|
# PHP + NGINX Container #----------------------------------
|
||||||
phpn-ginx:
|
phpn-ginx:
|
||||||
image: mahmoudz/lara-phpnginx
|
image: mahmoudz/lara-phpnginx:latest
|
||||||
container_name: php-nginx
|
container_name: php-nginx
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
@ -16,39 +20,45 @@ phpn-ginx:
|
|||||||
|
|
||||||
# MySQL Container #----------------------------------------
|
# MySQL Container #----------------------------------------
|
||||||
mysql:
|
mysql:
|
||||||
image: mahmoudz/lara-mysql
|
image: mahmoudz/lara-mysql:latest
|
||||||
container_name: mysql
|
container_name: mysql
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- mysql-data
|
- data
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: laravel-database
|
MYSQL_DATABASE: laravel-database
|
||||||
MYSQL_USER: root
|
MYSQL_USER: root
|
||||||
MYSQL_PASSWORD: pass
|
MYSQL_PASSWORD: pass
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|
||||||
# MySQL Data Volume Container #----------------------------
|
|
||||||
mysql-data:
|
|
||||||
image: mahmoudz/lara-data
|
|
||||||
container_name: mysql-data
|
|
||||||
volumes:
|
|
||||||
- /var/lib/mysql
|
|
||||||
|
|
||||||
# Redis Container #----------------------------------------
|
# Redis Container #----------------------------------------
|
||||||
redis:
|
redis:
|
||||||
image: mahmoudz/lara-redis
|
image: mahmoudz/lara-redis:latest
|
||||||
container_name: redis
|
container_name: redis
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
|
volumes_from:
|
||||||
|
- data
|
||||||
|
volumes:
|
||||||
|
- ./logs/redis:/var/log/redis
|
||||||
|
restart: always
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|
||||||
# Beanstalkd Container #-----------------------------------
|
# Beanstalkd Container #-----------------------------------
|
||||||
beanstalkd:
|
beanstalkd:
|
||||||
image: mahmoudz/lara-beanstalkd
|
image: mahmoudz/lara-beanstalkd:latest
|
||||||
container_name: beanstalkd
|
container_name: beanstalkd
|
||||||
ports:
|
ports:
|
||||||
- "11300:11300"
|
- "11300:11300"
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|
||||||
|
# Data Volume Container #----------------------------------
|
||||||
|
data:
|
||||||
|
image: mahmoudz/lara-data:latest
|
||||||
|
container_name: data
|
||||||
|
volumes:
|
||||||
|
- /var/lib/mysql
|
||||||
|
- /var/lib/redis
|
||||||
|
|
||||||
#----------------------------------------------------------
|
#----------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user