Skip to content

Commit 0217497

Browse files
committed
[v.1.1.0] mysqldump and docker-compose.yml refactor
1 parent d867186 commit 0217497

2 files changed

Lines changed: 8 additions & 19 deletions

File tree

bin/dev_command/mysqldump

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
docker exec -i stacker_db_1 mysql -uroot -proot ${DEV_COMMAND_OPTIONS}
21

3-
#docker-compose exec db bash -c 'mysqldump -uroot -p${MYSQL_ROOT_PASSWORD} ${DEV_COMMAND_OPTIONS}'
2+
docker-compose exec db bash -c 'mysqldump -uroot -p${MYSQL_ROOT_PASSWORD} ${DEV_COMMAND_OPTIONS}'
43
exit $?;

docker-compose.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
version: '2'
22
services:
3-
# apache:
4-
# image: bitnami/apache:latest
5-
# ports:
6-
# - 81:80
7-
# - 444:443
8-
# volumes:
9-
# - ./apache/apache:/bitnami/apache
10-
# - ./workspace:/app
11-
12-
133
php5apache:
144
build: php5apache
155
image: maxlab/php5apache
@@ -88,7 +78,7 @@ services:
8878
- db
8979
- mailcatcher
9080
- redis
91-
# - elasticsearch
81+
- elasticsearch
9282
php7console:
9383
build: php7
9484
container_name: php7console
@@ -98,9 +88,9 @@ services:
9888
volumes_from:
9989
- php7
10090
tty: true
101-
#elasticsearch:
102-
# image: elasticsearch:5
103-
# volumes:
104-
# - ./elasticsearch:/usr/share/elasticsearch/data
105-
# ports:
106-
# - "9200:9200"
91+
elasticsearch:
92+
image: elasticsearch:5
93+
volumes:
94+
- ./elasticsearch:/usr/share/elasticsearch/data
95+
ports:
96+
- "9200:9200"

0 commit comments

Comments
 (0)