Docker-Compose persistent data MySQL
I can’t seem to get MySQL data to persist if I run $ docker-compose down with the following .yml version: ‘2’ services: # other services data: container_name: flask_data image: mysql:latest volumes: – /var/lib/mysql command: “true” mysql: container_name: flask_mysql restart: always image: mysql:latest environment: MYSQL_ROOT_PASSWORD: ‘test_pass’ # TODO: Change this MYSQL_USER: ‘test’ MYSQL_PASS: ‘pass’ volumes_from: – … Read more