services: mysql: image: mysql:latest container_name: mysql environment: MYSQL_ROOT_PASSWORD: your_root_password MYSQL_DATABASE: name_database MYSQL_USER: your_user MYSQL_PASSWORD: your_password TZ: Europe/Rome volumes: - /home/debian/database/mysql_data:/var/lib/mysql networks: - npm-internal restart: unless-stopped phpmyadmin: image: phpmyadmin/phpmyadmin:latest container_name: phpmyadmin environment: PMA_ARBITRARY: 1 PMA_HOST: mysql # ports: # - "8080:80" networks: - npm-internal restart: unless-stopped volumes: mysql_data: networks: npm-internal: name: npm-internal external: true