services:
  legacy-db:
    image: mariadb:10.11
    container_name: legacy-db
    restart: unless-stopped
    environment:
      MARIADB_ROOT_PASSWORD: ***LEGACY-DB-PW-REDACTED***
      MARIADB_DATABASE: gestionclient
      MARIADB_USER: facturation
      MARIADB_PASSWORD: ***LEGACY-DB-PW-REDACTED***
    volumes:
      - legacy-data:/var/lib/mysql
    ports:
      - "127.0.0.1:3307:3306"
    networks:
      - erpnext_erpnext
    mem_limit: 1g

volumes:
  legacy-data:

networks:
  erpnext_erpnext:
    external: true
