Skip to content

Commit

Permalink
[v.1.1.0] mysqldump and docker-compose.yml refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxlab committed Nov 30, 2016
1 parent d867186 commit 0217497
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
3 changes: 1 addition & 2 deletions bin/dev_command/mysqldump
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
docker exec -i stacker_db_1 mysql -uroot -proot ${DEV_COMMAND_OPTIONS}

#docker-compose exec db bash -c 'mysqldump -uroot -p${MYSQL_ROOT_PASSWORD} ${DEV_COMMAND_OPTIONS}'
docker-compose exec db bash -c 'mysqldump -uroot -p${MYSQL_ROOT_PASSWORD} ${DEV_COMMAND_OPTIONS}'
exit $?;
24 changes: 7 additions & 17 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
version: '2'
services:
# apache:
# image: bitnami/apache:latest
# ports:
# - 81:80
# - 444:443
# volumes:
# - ./apache/apache:/bitnami/apache
# - ./workspace:/app


php5apache:
build: php5apache
image: maxlab/php5apache
Expand Down Expand Up @@ -88,7 +78,7 @@ services:
- db
- mailcatcher
- redis
# - elasticsearch
- elasticsearch
php7console:
build: php7
container_name: php7console
Expand All @@ -98,9 +88,9 @@ services:
volumes_from:
- php7
tty: true
#elasticsearch:
# image: elasticsearch:5
# volumes:
# - ./elasticsearch:/usr/share/elasticsearch/data
# ports:
# - "9200:9200"
elasticsearch:
image: elasticsearch:5
volumes:
- ./elasticsearch:/usr/share/elasticsearch/data
ports:
- "9200:9200"

0 comments on commit 0217497

Please sign in to comment.