Skip to content

Instantly share code, notes, and snippets.

@Steellgold
Created February 10, 2026 11:07
Show Gist options
  • Select an option

  • Save Steellgold/124b6035290c9ece65b17246b5e49ef0 to your computer and use it in GitHub Desktop.

Select an option

Save Steellgold/124b6035290c9ece65b17246b5e49ef0 to your computer and use it in GitHub Desktop.
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