config en cours, bloque sur composer et son utilisation du proxy
This commit is contained in:
5
scripts/features/dockstead/env.docker
Normal file
5
scripts/features/dockstead/env.docker
Normal file
@ -0,0 +1,5 @@
|
||||
# Mysql Parameters
|
||||
MYSQL_ROOT_PASSWORD=secret
|
||||
MYSQL_DATABASE=homestead
|
||||
MYSQL_USER=homestead
|
||||
MYSQL_PASSWORD=secret
|
25
scripts/features/dockstead/mysql-5.7.yaml
Normal file
25
scripts/features/dockstead/mysql-5.7.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
#
|
||||
# docker stack deploy -c /vagrant/scripts/features/dockstead/mysql-5.7.yaml mysql-56
|
||||
#
|
||||
version: "3.7"
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
volumes:
|
||||
- type: volume
|
||||
source: mysql-data
|
||||
target: /var/lib/mysql
|
||||
volume:
|
||||
nocopy: true
|
||||
ports:
|
||||
- "3306:3306"
|
||||
healthcheck:
|
||||
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
|
||||
interval: 3s
|
||||
timeout: 1s
|
||||
retries: 5
|
||||
env_file:
|
||||
- env.docker
|
||||
volumes:
|
||||
mysql-data:
|
12
scripts/features/dockstead/mysql-57.sh
Normal file
12
scripts/features/dockstead/mysql-57.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Stop the default MySQL Service
|
||||
sudo service mysql stop
|
||||
|
||||
# Update /home/vagrant/.my.cnf
|
||||
sed -i "s/localhost/127.0.0.1/" /home/vagrant/.my.cnf
|
||||
|
||||
# Start the MySQL 5.7 stack
|
||||
docker stack deploy -c /vagrant/scripts/features/dockstead/mysql-5.7.yaml mysql-57
|
||||
echo "Sleeping for 30 seconds while we wait for MySQL service to come up"
|
||||
sleep 30
|
Reference in New Issue
Block a user