Added Percona container as an alternative to mysql mariadb
This commit is contained in:
parent
8ed8bfdc2a
commit
ba32dedbef
@ -81,7 +81,7 @@ Your folder structure should look like this:
|
|||||||
|
|
||||||
*Or you can keep `default.conf` as it is, and create a separate config `my-site.conf` file for it.*
|
*Or you can keep `default.conf` as it is, and create a separate config `my-site.conf` file for it.*
|
||||||
|
|
||||||
**In case of Apache:** :P
|
**In case of Apache:** :P
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ docker-compose up -d nginx mysql
|
|||||||
|
|
||||||
You can select your own combination of containers form the list below:
|
You can select your own combination of containers form the list below:
|
||||||
|
|
||||||
> `nginx`, `hhvm`, `php-fpm`, `mysql`, `redis`, `postgres`, `mariadb`, `neo4j`, `mongo`, `apache2`, `caddy`, `memcached`, `beanstalkd`, `beanstalkd-console`, `rabbitmq`, `beanstalkd-console`, `workspace`, `phpmyadmin`, `adminer`, `aerospike`, `pgadmin`, `elasticsearch`, `rethinkdb`, `postgres-postgis`, `certbot`, `mailhog`, `minio` and more...!
|
> `nginx`, `hhvm`, `php-fpm`, `mysql`, `percona`, `redis`, `postgres`, `mariadb`, `neo4j`, `mongo`, `apache2`, `caddy`, `memcached`, `beanstalkd`, `beanstalkd-console`, `rabbitmq`, `beanstalkd-console`, `workspace`, `phpmyadmin`, `adminer`, `aerospike`, `pgadmin`, `elasticsearch`, `rethinkdb`, `postgres-postgis`, `certbot`, `mailhog`, `minio` and more...!
|
||||||
|
|
||||||
*(Please note that sometimes we forget to update the docs, so check the `docker-compose.yml` file to see an updated list of all available containers).*
|
*(Please note that sometimes we forget to update the docs, so check the `docker-compose.yml` file to see an updated list of all available containers).*
|
||||||
|
|
||||||
@ -186,7 +186,7 @@ docker-compose exec workspace bash
|
|||||||
docker exec -it {workspace-container-id} bash
|
docker exec -it {workspace-container-id} bash
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note:** You can add `--user=laradock` to have files created as your host's user. Example:
|
**Note:** You can add `--user=laradock` to have files created as your host's user. Example:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker-compose exec --user=laradock workspace bash
|
docker-compose exec --user=laradock workspace bash
|
||||||
@ -206,6 +206,6 @@ DB_HOST=mysql
|
|||||||
*If you want to install Laravel as PHP project, see [How to Install Laravel in a Docker Container](#Install-Laravel).*
|
*If you want to install Laravel as PHP project, see [How to Install Laravel in a Docker Container](#Install-Laravel).*
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
5 - Open your browser and visit your localhost address `http://localhost/`. If you followed the multiple projects setup, you can visit `http://project-1.dev/` and `http://project-2.dev/`. But first don't
|
5 - Open your browser and visit your localhost address `http://localhost/`. If you followed the multiple projects setup, you can visit `http://project-1.dev/` and `http://project-2.dev/`. But first don't
|
||||||
|
|
||||||
|
|
||||||
|
@ -179,6 +179,23 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
### Percona Container #########################################
|
||||||
|
|
||||||
|
percona:
|
||||||
|
build:
|
||||||
|
context: ./percona
|
||||||
|
environment:
|
||||||
|
- MYSQL_DATABASE=${PERCONA_DATABASE}
|
||||||
|
- MYSQL_USER=${PERCONA_USER}
|
||||||
|
- MYSQL_PASSWORD=${PERCONA_PASSWORD}
|
||||||
|
- MYSQL_ROOT_PASSWORD=${PERCONA_ROOT_PASSWORD}
|
||||||
|
volumes:
|
||||||
|
- percona:/var/lib/mysql
|
||||||
|
ports:
|
||||||
|
- "${PERCONA_PORT}:3306"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
### MSSQL Container #########################################
|
### MSSQL Container #########################################
|
||||||
|
|
||||||
mssql:
|
mssql:
|
||||||
@ -529,6 +546,8 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
mysql:
|
mysql:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
|
percona:
|
||||||
|
driver: "local"
|
||||||
mssql:
|
mssql:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
postgres:
|
postgres:
|
||||||
|
@ -70,6 +70,13 @@ MYSQL_PASSWORD=secret
|
|||||||
MYSQL_PORT=3306
|
MYSQL_PORT=3306
|
||||||
MYSQL_ROOT_PASSWORD=root
|
MYSQL_ROOT_PASSWORD=root
|
||||||
|
|
||||||
|
### Percona Container
|
||||||
|
PERCONA_DATABASE=homestead
|
||||||
|
PERCONA_USER=homestead
|
||||||
|
PERCONA_PASSWORD=secret
|
||||||
|
PERCONA_PORT=3306
|
||||||
|
PERCONA_ROOT_PASSWORD=root
|
||||||
|
|
||||||
### MSSQL Container
|
### MSSQL Container
|
||||||
MSSQL_DATABASE=homestead
|
MSSQL_DATABASE=homestead
|
||||||
MSSQL_PASSWORD=yourStrong(!)Password
|
MSSQL_PASSWORD=yourStrong(!)Password
|
||||||
|
11
percona/Dockerfile
Normal file
11
percona/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
FROM percona:5.7
|
||||||
|
|
||||||
|
MAINTAINER DTUNES <diegotdai@gmai.com>
|
||||||
|
|
||||||
|
RUN chown -R mysql:root /var/lib/mysql/
|
||||||
|
|
||||||
|
ADD my.cnf /etc/mysql/conf.d/my.cnf
|
||||||
|
|
||||||
|
CMD ["mysqld"]
|
||||||
|
|
||||||
|
EXPOSE 3306
|
9
percona/my.cnf
Normal file
9
percona/my.cnf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# The MySQL Client configuration file.
|
||||||
|
#
|
||||||
|
# For explanations see
|
||||||
|
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
|
||||||
|
|
||||||
|
[mysql]
|
||||||
|
|
||||||
|
[mysqld]
|
||||||
|
sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
|
Loading…
Reference in New Issue
Block a user