Created
February 10, 2026 11:07
-
-
Save Steellgold/124b6035290c9ece65b17246b5e49ef0 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.1' | |
| services: | |
| db: | |
| image: mysql:latest | |
| command: --default-authentication-plugin=mysql_native_password | |
| restart: always | |
| volumes: | |
| - ./init:/docker-entrypoint-initdb.d | |
| - db_data:/var/lib/mysql | |
| environment: | |
| MYSQL_ROOT_PASSWORD: serfa | |
| MYSQL_DATABASE: cinema | |
| MYSQL_USER: serfa | |
| MYSQL_PASSWORD: serfa | |
| ports: | |
| - "3308:3306" | |
| networks: | |
| - cinema-network | |
| phpmyadmin: | |
| image: phpmyadmin/phpmyadmin:latest | |
| restart: always | |
| ports: | |
| - "8080:80" | |
| environment: | |
| PMA_HOST: db | |
| PMA_PORT: 3306 | |
| PMA_USER: root | |
| PMA_PASSWORD: serfa | |
| depends_on: | |
| - db | |
| networks: | |
| - cinema-network | |
| volumes: | |
| db_data: # Volume persistant pour MySQL | |
| networks: | |
| cinema-network: | |
| driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment