version: '2.2' services: db: image: mariadb container_name: simplenotes-mariadb env_file: - .env environment: - PUID=1000 - PGID=1000 - TZ=Europe/Brussels - MYSQL_DATABASE=simplenotes - MYSQL_USER=simplenotes # .env: # - MYSQL_ROOT_PASSWORD # - MYSQL_PASSWORD volumes: - notes-db-volume:/var/lib/mysql healthcheck: test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"] timeout: 10s retries: 10 simplenotes: image: hubv/simplenotes container_name: simplenotes env_file: - .env environment: - TZ=Europe/Brussels - HOST=0.0.0.0 - JDBCURL=jdbc:mariadb://db:3306/simplenotes - DRIVERCLASSNAME=org.mariadb.jdbc.Driver - USERNAME=simplenotes # .env: # - JWT_SECRET # - PASSWORD ports: - 127.0.0.1:8080:8080 depends_on: db: condition: service_healthy volumes: notes-db-volume: