docker-compose.yml
version: "2" services: db-container: image: busybox volumes: - db-volume: /var/lib/mysql/ mysql-container: image: mysql:8 environment: - MYSQL_ROOT_PASSWORD=dbpass01 - MYSQL_DATABASE=redmine command: --character-set-server-utf8mb4 --collation-server=utf8mb4_unicode_ci --default-authentication-plugin=mysql_native_password volumes_from: - db-container dpends_on: - db-container restart: always pma-container: image: phpmyadmin/phpmyadmin environment: - PMA_HOST=mysql-container - PMA_USER=root - PMA_PASSWORD=dbpass01 ports: - 8080:80 depends_on: - mysql-container restart: always wp-container: image: wordpress environent: - WORDPRESS_DB_HOST=mysql-container - WORDPRESS_DB_USER=root - WORDPRESS_DB_PASSWORD=dbpass01 ports: - 8080:80 depends_on: - mysql-container restart: always rm-container: image: redmine environment: - REDMINE_DB_MYSQL=mysql-container - REDMINE_DB_USERNAME=root - REDMINE_DB_PASSWORD=dbpass01 ports: - 3000:3000 depends_on: - mysql-container restart: always volumes: db-volume: