Created
May 27, 2020 20:18
-
-
Save soscler/ca76880e3dc1060f4805b978da955741 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.5" | |
services: | |
# 1ere base de donnée mysql sur le port 3306 | |
latty_db-1: | |
image: mysql:8.0 | |
container_name: latty-mysql-dev-1 | |
command: --default-authentication-plugin=mysql_native_password | |
ports: | |
- 3306:3306 | |
networks: | |
- latty-network-dev | |
volumes: | |
- latty-db-volume-dev-1:/var/lib/mysql/ | |
env_file: | |
- .mysql.docker.env | |
restart: always | |
# 2e base de donnée mysql sur le port 3307 | |
latty_db-2: | |
image: mysql:8.0 | |
container_name: latty-mysql-dev-2 | |
command: --default-authentication-plugin=mysql_native_password | |
ports: | |
- 3307:3306 | |
networks: | |
- latty-network-dev | |
volumes: | |
- latty-db-volume-dev-2:/var/lib/mysql/ | |
env_file: | |
- .mysql.docker.env | |
restart: always | |
# Un service phpmyadmin sur le port 5000 qui se connecte sur la première base de donnée | |
# Utiliser plutôt Workbench qui est plus adapté pour mysql et | |
# permet de se connecter à plusieurs bases de données | |
latty_myadmin: | |
image: phpmyadmin/phpmyadmin:latest | |
container_name: latty-myadmin-dev | |
ports: | |
- 5000:80 | |
networks: | |
- latty-network-dev | |
env_file: | |
.php.docker.env | |
depends_on: | |
- latty_db-1 | |
links: | |
- latty_db-1 | |
volumes: | |
latty-db-volume-dev-1: | |
latty-db-volume-dev-2: | |
networks: | |
latty-network-dev: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment