Hi!
I’ve got a problem with persistent data on a multi-container app on a revolution pi 3 (balenaOS 2.31.5+rev2):
On restarting the webmacs.mariadb container the database is deleted, even after following the docs https://www.balena.io/docs/learn/develop/runtime/
Do you have an idea what’s going wrong?
docker-compose file:
version: ‘2.1’
volumes:
webmacs-data:
services:
#################################
# Setup webmacs.mysql container #
#################################
webmacs.mariadb:
container_name: webmacs.mariadb
hostname: webmacs.mariadb
image: webhippie/mariadb:latest
ports:
- 3306:3306
volumes:
- 'webmacs-data:/data'
privileged: true
build:
context: ./webmacs.mysql
dockerfile: Dockerfile
environment:
MYSQL_ROOT_PASSWORD: ####
MYSQL_DATABASE: wirbelschicht_db
MYSQL_USER: wirbelschicht
MYSQL_PASSWORD: ####
INSTALL_SAKILA: 1
TZ: Europe/London
############################################
# Setup webmacs.phpmyadmin container #
############################################
webmacs.phpmyadmin:
container_name: webmacs.phpmyadmin
hostname: webmacs.phpmyadmin
image: jackgruber/phpmyadmin:armhf
links:
- webmacs.mariadb
ports:
- 80:80
environment:
PMA_HOST: webmacs.mariadb
MYSQL_ROOT_PASSWORD: ####
depends_on:
- webmacs.mariadb